DFS & BFS
Brute Force Paradigm
Algorithms & Problems
Random Subjects
100

Explain how BFS traverses a graph

Level by Level, top down

100

Why is computing the square root avoided?

It is computationally intensive

100

T/F the selection sort is considered  in-place

True, except for the enhanced selection sort which uses an additional array to store indices of smallest elements
100

Which is older Python or Java?

Python

200

Breadth-First Search (BFS) utilizes a ___ data structure, which adheres to a _____ order, to manage and sequentially select the next vertex for traversal.

Queue, FIFO

200
Time complexity generally increases ___ with the size of the input data.

exponentially

200
How can the Bubble Sort be improved?
By stopping the algorithm if no exchanges occur in a pass
200

Who is the Author of the Linux Kernel?

Linus Torvalds

300

Which Data structure is used for DFS?

Generally a Stack

300

List three qualities of the Brute force approach

Simple, General, improved with modest effort, limited efficiency

300

With each pass, the ___ sort positions the largest unsorted value correctly.

Bubble

300

What is origin of the term 'Bug' in software engineering?

Grace Hopper, Mark II computer in 1947

400

What is the primary difference between DFS and BFS?

The exploration strategy employed

400
Brute Force Leverages ____ rather than intricate problem solving strategies.

power of machines

400

How can the Selection Sort be improved?

By using an additional structure to store indices of smallest numbers

400

List 3 of the top 6 Programming languages according to the TIOBE 2025 index. IN CORRECT ORDER

1. Python, 2. C, 3. C++

4. Java, 5. C#, 6. JS

500

Explain how DFS determines the next vertex to visit

Depends on the data structure representing the graph

500

Describe the brute force approach for string matching

Systematically compares characters in the test and pattern NOT sub-string comparison

500

What is significant about the Hungarian method concerning the assignment problem?

It guarantees the optimal solution (for any instance)

500

Who is the greatest NHL Hockey Player of all time? and what was his jersey number?

Wayne Gretzky, 99

M
e
n
u