- Type
- Quiz
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 1.8 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 33. Download the file for all 33 pages.
- In heap sort algorithm, the total running time for heavily procedure is
- Quick sort algorithm is required a lot of comparison in the ____ condition.
- Worse case
- Best and average case
- Average case
- Best case
- In heap sort algorithm (using max heap). When every time maximum element is removed from top.
- Divide and conquer strategy helps us
- We are left with a lot
- We call merge sort algorithm
- It becomes order n2 algorithm
- In average-case time analysis of quick sort algorithm, The most balanced case for partition is where we divide the list of element into ________
- Three nearly equal pieces
- Single piece exactly
- Two nearly piece
- Equal no. of piece as of input element
- Consider three matrices X,Y,Z dimensions 1×2.2×.3×4 respectively. The number of multiplication of (XYZ) is:
- 32
- 30
- 24
- 18
- Quicksort is a/an _____ and______ sorting algorithm.
- In-place, not stable one
- Not in-place, stable one
- In-place, stable one
- Not in-place, not stable one
- ________items are not allowed in the 0/1 knapack.
- Lighter
- Whole
- Weighty
- Fractional
- The main purpose of mathematical analysis is measuring the ______ required by the algorithm.
- Space
- Execution time and memory
- Input & output
- Execution time
- Execution time of an algorithm can be measured by __________.
- Divide and conquer approach
- Both brute force and divide and conquer approach
- Mathematical analysis
- Brute force approach
- Quick sort is based on ________ strategy.
- Graph theory
- Divide-and-conquer
- Dynamic programming
- A sorting algorithm is called as ______ if duplicate element remain in the same relative position after sorting.
- O(n) algorithm
- Stable
- Parallel
- Complex
Q12. Which one sorting algorithm is best suited to sort an array of 2 million elements?
- Insert sort
- Quick sort
- Merge sort
- Bubble sort
- We can use the ___________ property to devise a recursive formulation of the edit distance problem.
- Algorithm
- Small substructure
- Optimal substructure
- Real
- While sorting. The ordered domain means for any two input elements x and y ________ satisfies only.
- All of the above
- x > y
- x < y
- x = y
- 8n2 + 2n -3 will eventually exceed c2*(n) no matter how large we make _____.
- 2n
- n
- this equation
- c2
- ________ is a method of solving a problem in which we check all possible solution to the problem to find the solution we need.
- Sorting algorithm
- Plane-sweep algorithm
- Brute-force algorithm
Related CS502 files
All CS502 files →- CS502 Solution 1 by Junaid Quiz DOCX 79 KB
- CS502 Grand Quiz by Junaid Quiz PDF 1.2 MB
- CS502 Highlighted Handouts Set 2 Highlighted PDF 1.7 MB
- CS502 Final Term Solved MCQs Set 2 by Junaid Final term PDF 3.3 MB
- CS502 Quiz Updated by Smile Quiz PDF 7.1 MB
- CS502 Solved Quiz 1 Complete by Maham Shah Zill Quiz PDF 603 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.