Algorithm
This is a set of simple multiple-choice questions, provided entirely for your self-assessment, and is based on the most fundamental aspects of data structure and algorithms. The level of the questions is no more than that of what one would encounter in an introductory Programming and Data Structures class in the freshman year at college.
Sign in to Google to save your progress. Learn more
Which of these is the Worst-case time complexity of Quick Sort - and cannot be expressed in lower order terms?
Clear selection
Which of these is the worst-case time complexity of Merge Sort - and cannot be expressed in lower order terms?
Clear selection
Which of these is the average case time complexity of Merge Sort - and cannot be expressed in lower order terms?
Clear selection
Which of these is the time complexity involved in building a heap of n elements - and cannot be expressed in lower order terms?
Clear selection
A heap is a particular kind of a binary search tree. This statement is:
Clear selection
The Floyd-Warshall all-pairs shortest path algorithm for finding the shortest distances between nodes in a graph is an example of:
Clear selection
A bitwise operation 'f' has an interesting characteristic, such that, if f(a,b) = c, it always turns out to be the case that f(b,a) = c; f(a,c) = b; f(c,a) = b; f(b,c) = a; f(c,b) = a. Which of these functions could 'f' possibly be?
Clear selection
A union-find data structure is commonly applied while implementing:
Clear selection
Which of these is the worst-case time complexity for looking up a key in a binary search tree - and cannot be expressed in lower order terms?
Clear selection
The graph algorithm which forms an essential component of the 'make' or 'ant build' used by programmers and software developers is:
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google.