Cs Subjects Onlie QuizCs 502 Midterm Important Repeated Mcqs Quiz Zain Akhtar6 months ago6 months ago01 mins Cs 502 MidTerm Important Repeated Mcqs Online Quiz Cs 502 quiz helps us to increase our knowledge 1 / 23 For the sieve technique we solve the problem, recursively right-complete tree nodes tree leaves 2 / 23 A (an) _________ is a left-complete binary tree that conforms to the heap order heap binary tree binary search tree array 3 / 23 The analysis of Selection algorithm shows the total running time is indeed ________in n, arithmetic geometric linear orthogonal 4 / 23 One of the clever aspects of heaps is that they can be stored in arrays without using any pointers constants variables functions 5 / 23 Divide-and-conquer as breaking the problem into a small number of pivot Sieve smaller sub problems Selection 6 / 23 We do sorting to, keep elements in random positions keep the algorithm run in linear order keep the algorithm run in (log n) order keep elements in increasing or decreasing order 7 / 23 Analysis of Selection algorithm ends up with, T(n) T(1 / 1 + n) T(n / 2) T((n / 2) + n) 8 / 23 The recurrence relation of Tower of Hanoi is given below T(n)={1 if n=1 and 2T(n-1) if n >1 Inorder to move a tower of 5 rings from one peg to another, how many ring moves are required? 16 32 18 20 9 / 23 In which order we can sort? increasing order only decreasing order only increasing order or decreasing order both at the same time 10 / 23 The sieve technique is a special case, where the number of sub problems is just 5 1 4 Many 11 / 23 Slow sorting algorithms run in, T(n^2) T(n) T( log n) array 12 / 23 The sieve technique works in ___________ as follows phases numbers integers routines 13 / 23 For the sieve technique we solve the problem recursively mathematically precisely accurately 14 / 23 For the heap sort, access to nodes involves simple _______________ operations. arithmetic binary algebraic logarithmic 15 / 23 In the analysis of Selection algorithm, we eliminate a constant fraction of the array with eachphase; we get the convergent _______________ series in the analysis, linear arithmetic geometric exponent 16 / 23 The recurrence relation of Tower of Hanoi is given below T(n)={1 if n=1 and 2T(n-1) if n >1 Inorder to move a tower of 5 rings from one peg to another, how many ring moves are required? 16 10 32 31 17 / 23 In Sieve Technique we do not know which item is of interest True False 18 / 23 Divide-and-conquer as breaking the problem into a small number of pivot Sieve smaller sub problems Selection 19 / 23 A (an) _________ is a left-complete binary tree that conforms to the heap order heap binary search tree binary tree array 20 / 23 A heap is a left-complete binary tree that conforms to the ___________ increasing order only decreasing order only heap order (log n) order 21 / 23 Sieve Technique can be applied to selection problem? True False 22 / 23 Heaps can be stored in arrays without using any pointers; this is due to the ____________nature of the binary tree, left-complete right-complete tree nodes tree leaves 23 / 23 We do sorting to, keep elements in random positions keep the algorithm run in linear order keep the algorithm run in (log n) order keep elements in increasing or decreasing order Your score isThe average score is 0% 0% Restart quiz Post navigation Previous: Cs 401 Midterm Important Repeated Mcqs QuizNext: Cs 504 Midterm Important Repeated Mcqs Quiz