Which of the following algorithms is an example of a greedy algorithm?

DAALAB

Quiz
•
Computers
•
1st Grade
•
Hard
vijay bhaskar uppari
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quick Sort
Dijkstra’s shortest path algorithm
Bellman-Ford algorithm
Kruskal’s algorithm for minimum spanning tree
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a dynamic programming problem?
Longest Common Subsequence
Binary Search
Depth First Search
Breadth First Search
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithms has a worst-case time complexity of O(n^2)?
Merge Sort
Heap Sort
Quick Sort
Bubble Sort
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data structures is best suited for implementing a priority queue?
Array
Linked list
Stack
Heap
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following algorithms is used to find the shortest path between two vertices in a graph?
Breadth First Search
Depth First Search
Dijkstra’s shortest path algorithm
Bellman-Ford algorithm
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following algorithms is used to find the shortest path between all pairs of vertices in a graph?
Breadth First Search
Depth First Search
Dijkstra’s shortest path algorithm
Floyd-Warshall algorithm
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following algorithms is used to find the longest increasing subsequence in a sequence?
Merge Sort
Heap Sort
Quick Sort
Dynamic Programming
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
SEARCH&SORT

Quiz
•
1st Grade
12 questions
Grade 1 Term 2 Theory Exam 2022/2023

Quiz
•
1st Grade
10 questions
Divide and conquer

Quiz
•
1st Grade
13 questions
A words - GCSE Computer Science

Quiz
•
1st - 10th Grade
9 questions
อัลกอริทึม P4

Quiz
•
1st - 5th Grade
15 questions
Search Algorithms Quiz

Quiz
•
1st Grade
10 questions
Algorithms

Quiz
•
1st - 5th Grade
15 questions
Computer Science Basics

Quiz
•
KG - 2nd Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade