The Brute Force Technique
BFS vs. DFS
Searching Algorithms
Common problems
Misc.
10

What is the brute force approach?

A straightforward approach that tries all possible solutions to find the best one.

10

In the context of a BFS traversal, what does it mean when a vertex is dequeued from the queue?

The vertex has been fully explored, and its neighbors are now being processed.

10

Which type of search successively compares elements until is encounters a match?

Sequential search

10

What problem involves finding the smallest distance between a pair of vertices in a graph?

Closest-pair problem

10

How does BFS determine the order of visiting vertices?

FIFO

20

Why is brute force considered inefficient for large inputs?

It often has exponential or factorial time complexity, making it computationally expensive.

20

In the context of a DFS traversal, what does it mean when a vertex is popped from the stack?

The vertex has been fully explored, and the algorithm is back tracking

20

What improvement can be made to the initial version of the bubble sort?

Stop the algorithm of no exchanges occur in a pass.

20

What problem involves maximizing the value of the items is a bag structure without exceeding the bags capacity?

The knapsack problem

20

Which sorting algorithm begins by scanning a given list in it's entirety to fins the smallest element?

Selection sort

30

T/F Many Brute Force algorithms can be improved with modes effort

True

30

DFS is a _____ -based technique, while BFS is a ___-based technique.

Vertex, Edge

30

When is it advantageous to stop a sequential search in a sorted list?

When an element larger than or equal to the search key is found.

30

What problem involves finding the smallest polygon that encloses a given set of points in a plane?

Convex Hull

30

What is the primary idea behind brute-force problem solving?

Try every possible solution

40

What is the primary characteristic of the brute force approach to string-matching algorithms?

It systematically compares characters in the text and pattern

40

In the context of BFS, what does the queue represent?

The current level of the vertices being explored

40

What type of searching algorithm does this describe?
"the algorithm evaluates every possible solution within the problem domain"

exhaustive search

40

What is the primary objective of the assignment problem?

Minimize the total cost of assigning people to jobs.

40

What makes the Hungarian method effective in solving the assignment problem?

It ensure that the total cost is minimized by iteratively improving the solution through augmentation and reduction

50

Describe Brute force technique for password cracking

Brute force password cracking, where all possible combinations are tested

50

In the context of a DFS, what does the stack trace represent?

The current path of the vertices being explored

50

What is the key characteristic of Bubble Sort that makes it inefficient for large datasets?

Bubble Sort repeatedly swaps adjacent elements if they are in the wrong order, leading to a worst-case time complexity of O(n²), making it slow for large datasets

50

Which optimization problem describes visiting a set of cities exactly one and then returning to the start?

Traveling Salesman problem

50
What is Ryan's Favorite video game

Doom