- Type
- Subjective
- Course
- CS301 Data Structures
- Size
- PDF 145 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 12. Download the file for all 12 pages.
Come and join us at WebLyceum
For Past Papers, Quiz, Assignments, GDBs, Video Lectures etc
Q31. Describe the conditions for second case of deletion in AVL Trees. (1 marks)
Q32. What is Table abstract data type. (1 marks)
Q33. How we can generate a maze .Give an algorithm. (2 marks)
Q34. Represent the following Binary tree using array representation. (2 marks)
Q35. What is an Equivalent relation? Give any two examples. (3 marks)
Q36. "For smaller lists, linear insertion sort performs well, but for larger lists, quick sort is suitable to apply." Justify why? (3 marks)
Q37. depth is 7 ? (3 marks)
Q38. Remove the smallest element from the following array which represents a min-heap. (5 marks)
original min-heap
and show the resultant heap in the form of array as shown below,
Q39. Here is an array with exactly 15 elements: (5 marks)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15. Suppose that we are doing a binary search for an element. Indicate any elements that will be found by examining two or fewer numbers from the array.
Q40. (10 marks)
int isPresent(int *arr, int val, int N)
int low = 0; int high = N - 1; int mid; while ( low <= high )
mid = ( low + high )/2; if (arr[mid] == val) return 1; // found! else if (arr[mid] < val) low = mid + 1; else high = mid - 1;
return 0; // not found
b) Consider the following array of values; show how the binary search algorithm would find the value -5. Clearly show/explain your work; that is, show the values of start, end, etc. for each step of the algorithm.
Related CS301 files
All CS301 files →- CS301 Official Handouts Official handout PDF 3.4 MB Free
- CS301 Midterm Subjective by Talha Sajid Midterm PDF 817 KB
- CS301 Quiz 3 by VU Topper RM Quiz PDF 1 MB
- CS301 Quiz 4 2023 by Nida Khan Quiz PDF 1.6 MB
- CS301 Quiz 4 by VU Topper RM Quiz PDF 1.1 MB
- CS301 Final Term Searching Quiz Merged Quiz PDF 23.4 MB
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.