Back to marketplace

Fundamentals of algorithims

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

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

Card preview (18)

#1
Front (Question)

What is depth first

Back (Answer)

. In a depth-first search, a branch is fully explored before backtracking .Depth-first traversal uses a stack. Depth-first traversal is used for navigating a maze

#2
Front (Question)

What is breadth first

Back (Answer)

a node is fully explored before venturing on to the next node. Breadth-first traversal uses a queue. Useful for determining the shortest path

#3
Front (Question)

What is the benefit of a binary tree

Back (Answer)

You can perform a binary search or an unordered list

#4
Front (Question)

What is post fix

Back (Answer)

This is reverse polish notation

#5
Front (Question)

What is the advanatage of rpn

Back (Answer)

It is unambigous Can be calculated on stacks

#6
Front (Question)

WHat is oprand

Back (Answer)

This is the instruction given

#7
Front (Question)

What is opcode

Back (Answer)

is the mathematical signs + -

#8
Front (Question)

what is algorithm

Back (Answer)

An algorithm is a set of instructions which completes a task in a finite time and always terminates.

#9
Front (Question)

WHat is a linear search

Back (Answer)

A linear search can be conducted on any unordered list. It is the most simple to program, but it has a comparatively high time complexity O(n)

#10
Front (Question)

What is a binary search

Back (Answer)

A binary search can be used on any ordered list. If the list is unordered, the data must be sorted by a sorting algorithm. A binary search works by looking at the midpoint of a list and determining if the target is higher or lower than the midpoint. O(log(n))

#11
Front (Question)

WHat is the diffrerence between a binary search and a binary tree

Back (Answer)

Its only difference is binary search being conducted on a binary tree

#12
Front (Question)

What is are features of a tree

Back (Answer)

a connected, undirected graph with no cycles.

#13
Front (Question)

What is a binary tree

Back (Answer)

a rooted ordered tree O(log(n))

#14
Front (Question)

What is a bubble sort

Back (Answer)

The bubble sort algorithm uses the idea of swapping the position of adjacent items to order them. It has a time complexity of O(n²) so it is very inefficient.

#15
Front (Question)

What is a merge sort

Back (Answer)

A merge sort orders arrays by splitting them into smaller lists, and then reforming them - the ‘divide and conquer’ method. It is quicker than a bubble sort; it has a time complexity of O(nlogn).

#16
Front (Question)

WHat is the Dijkstra’s algorithm

Back (Answer)

finds the shortest path between two nodes in a graph, this is simila to breadth first

#17
Front (Question)

State two advantages of using Reverse Polish Notation (RPN) instead of infix notation to represent an expression.

Back (Answer)

Simpler for a machine/computer to evaluate Simpler to code algorithm;

#18
Front (Question)

Describe how a single stack could be used to evaluate an RPN expression

Back (Answer)

(Starting at LHS of expression) push values/operands on to stack; Each time operator reached pop top two values off stack (and apply operator to them) Push result (of applying operator) to stack; When end of expression is reached the top item of the stack is the result