Back to marketplace

Section 8 Chapter 46 and 47

No description yet. This curated deck is ready for daily study.

Total cards: 15•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (15)

#1
Front (Question)

Linear search

Back (Answer)

Searching for an object in a list by checking each object in order until the desired object is found

#2
Front (Question)

Linear search complexity

Back (Answer)

O(n)

#3
Front (Question)

Why you would use a linear search

Back (Answer)

To search an unordered list

#4
Front (Question)

Time complexity of binary search

Back (Answer)

O(log n)

#5
Front (Question)

Time complexity of bubble sort

Back (Answer)

O(n^2)

#6
Front (Question)

Time complexity of merge sort

Back (Answer)

O(nlog n)

#7
Front (Question)

What merge sort and binary search are examples of

Back (Answer)

Divide and conquer

#8
Front (Question)

Space complexity

Back (Answer)

The amount of resources, for instance memory, that an algorithm requires

#9
Front (Question)

How to code depth first search

Back (Answer)

Recursion

#10
Front (Question)

How to code breadth first search

Back (Answer)

Just do it in a function, use a queue and when adding, check that the node is not in visited AND not in the queue

#11
Front (Question)

Application of depth first search

Back (Answer)

Navigating through a maze

#12
Front (Question)

Applications of breadth first search (2)

Back (Answer)

• Finding the shortest path between two nodes - Web crawlers going through links

#13
Front (Question)

Data structure associated with a depth first search

Back (Answer)

stack

#14
Front (Question)

Data structure associated with a breadth first search

Back (Answer)

queue

#15
Front (Question)

What traversal is the same as the depth first search

Back (Answer)

pre order