Professional Documents
Culture Documents
Heaps Are Used in Many Famous Algorithms Such As Dijkstra
Heaps Are Used in Many Famous Algorithms Such As Dijkstra
shortest path, the heap sort sorting algorithm, implementing priority queues, and more.
Essentially, heaps are the data structure you want to use when you want to be able to
access the maximum or minimum element very quickly.
Bubble Sort.
Selection Sort.
Merge Sort.
Insertion Sort.
Quick Sort.
Heap Sort.
Min Heap.
Max heap.
Max heap is a specialized full binary tree in which every parent node contains greater or equal value
than its child nodes.
A sorting technique that sequences a list by continuously dividing the list into two parts and
moving the lower items to one
side and the higher items to the other. It starts by picking one item in the entire list to serve as a
pivot point.
Quick Sort is one of the different Sorting Technique which is based on the concept of Divide and
Conquer, just like merge sort.
But in quick sort all the heavy lifting(major work) is done while dividing the array into subarrays,
while in case of merge sort,
all the real work happens during merging the subarrays. In case of quick sort, the combine step does
absolutely nothing.
After selecting an element as pivot, which is the last index of the array in our case, we divide the
array for the first time.
In quick sort, we call this partitioning. It is not simple breaking down of array into 2 subarrays, but in
case of partitioning,
the array elements are so positioned that all the elements smaller than the pivot will be on the left
side of the pivot and all
the elements greater than the pivot will be on the right side of it.
Then we pick subarrays, elements on the left of pivot and elements on the right of pivot, and we
perform partitioning on
A sorting technique that sequences a list by continuously dividing the list into two parts and moving
the lower items to one
side and the higher items to the other. It starts by picking one item in the entire list to serve as a
pivot point.
DSA quiz-9
2020wa15380@wilp.bits-pilani.ac.in Switch account
Your email will be recorded when you submit this form
* Required
Name *
Your answer
Bit-id *
Your answer
Section *
A
B
C
D
O(V)
O(V2 )
O(E log V)
O(V*E)
Bellman ford
Prims
Dijktra
All of the above
Linear search
Brute Force Match
Binary search
Hoffman code
Kruskal
Prims
Dijktras
None of the above
Bellman ford
Dijktra
Floyd’s
Prims
The weighted directed graph has more than one edge with same values is possible
to have more than one spanning tree? *
1 point
Depends on graph
By prims only one
By kruskal more than one
Not possible by any approach
Pattern Matching
Pattern searching
Patterncount
None of the above
Submit
Clear form
Never submit passwords through Google Forms.
This form was created inside of BITS Pilani University. Report Abuse
Forms