Topic 3 - Fundamentals of algorithms

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:06 AM on 4/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards

2 types of graph traversal

Depth-first

Breadth-first

2
New cards
<p>What graph traversal is this?</p>

What graph traversal is this?

Breadth first

3
New cards
<p>What graph traversal is this?</p>

What graph traversal is this?

Depth first

4
New cards

Fill in the blanks:

Depth first traversal uses a _____. Breadth first traversal uses a _____

Stack

Queue

5
New cards

3 types of tree traversal

Pre-order

In-order

Post-order

6
New cards
<p>What tree traversal is this?</p>

What tree traversal is this?

Pre-order

7
New cards
<p>What tree traversal is this?</p>

What tree traversal is this?

In-order

8
New cards
<p>What tree traversal is this?</p>

What tree traversal is this?

Post-order

9
New cards

Pre order traversal

Used for copying a tree

Can be performed on any tree

10
New cards

In-order traversal

Used for a binary search

Can only be performed on binary trees

11
New cards

Post-order traversal

Used for Reverse Polish and emptying a tree

Can be performed on any tree

12
New cards

Reverse Polish definition

A postfix way of writing expressions that eliminates the need for brackets and confusion over order of execution

13
New cards

Linear search

Checks each item until the target is found or list ends

Can be conducted on any list

Time complexity of O(N)

14
New cards

Binary search

Looks at midpoint of list and determines if target is higher or lower, then repeats

Can be used on any ordered list

Time complexity of O(logN)

15
New cards

Binary tree search

Looks at parent node value and goes left if target is smaller, or right if target is larger

Can be used on any binary tree

Time complexity of O(logN)

16
New cards

Bubble sort

Swaps the positions of adjacent items to order them

Time complexity of O(n²)

17
New cards

Merge sort

Splits the array into smaller lists, then reforms them into the sorted order

Time complexity of O(logN)

18
New cards

Dijkstras algorithm

Used to find the shortest path betwene 2 nodes in a weighted graph