Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
question a directed graph is strongly connected if there is a path from every vertex to every other vertex do the
question explain how to modify the unweighted shortest-path algorithm so that if there is more than one minimum path in
question rework the call bank simulation so that event is an abstract base class and dialin event and hang up event are
question consider the following algorithm to solve the negative-weighted shortest-path problem add a constant c to each
question suppose that in a directed graph the cost of the path is the sum of the edge costs on the path plus the number
question in class random48 suppose one-parameter next nt invokes zero-parameter nextint instead of next long and cleans
question suppose that you have a biased coin that comes up heads with probability p and tails with probability 1 - p
assignmentprovide your response to the essay quiz questions-1 explain the difference between a hotfix and a service
assignmentyou will be making a digital rolodex using a doubly linked list your program will have the following
question write a method that removes all duplicates in an array a of n items return the number of items that remain in
question suppose that the recursive quicksort receives an int parameter depth from the driver that is initially
question repeat exercise for four numbers try to design an on2 log n algorithmexercise an array contains n numbers and
question exercise addressed stable sorting write a method that performs a stable quicksort to do so create an array of
question write a simple sorting utility sort the sort command takes a filename as a parameter and the file contains one
question suppose a double akeyed object has two keys a primary key and a secondary key when sorting if there are ties
question in quicksort instead of selecting three elements as is done for median-of-three partitioning suppose we are
question write a method that takes an array of strings and returns the largest group of words that are anagrams of each
question consider the following two-player game n coins c1 c2 cn you may assume that n is even are placed in a line on
question prove that any comparison-based algorithm used to sort four elements requires at least five comparisons for
question the method print reverse takes a scanner as a parameter prints each line in the scanner stream and closes the
question an alternate formulation of the maximum contiguous subsequence sum solution is to recursively solve the
question strassens algorithm for matrix multiplication multiplies two n times n matrices by performing seven recursive
question a median heap supports the following operations insert findkth and removekth the last two find and remove
question a double-ended priority queue allows access to both the minimum and maximum elements in other words all of the
question by maintaining the invariant that the elements in the priority queue are sorted in nonincreasing order that is