Back to marketplace

Sorting Algorithm Descriptions

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

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

Card preview (10)

#1
Front (Question)

Bubble Sort - Works within one list

Back (Answer)

Consecutive items compared and swapped until biggest value has ‘bubbled’ to bottom/top - dependent on desired outcome Every pass places another item into sorted part of list Algorithm must ensure that comparing and swapping stops short of sorted part

#2
Front (Question)

Recognising bubble sort

Back (Answer)

Inner fixed loop compares each item of the list with next along

#3
Front (Question)

Selection Sort

Back (Answer)

Finds smallest value inside list1 Places it in first position in list2 Dummy value replaces value moved from 1st list This value must be chosen to be larger than biggest list1 value

#4
Front (Question)

Insertion Sort

Back (Answer)

Assumes first item is already sorted Takes second and compares it with first item to its left If first is bigger then swap occurs Sorted part has increased to 2 This is repeated for remaining list items

#5
Front (Question)

Inefficiency of insertion sort

Back (Answer)

Comparative sort. Builds sorted part one item at a time, Orders first two items Inserts 3rd item relative to first two 4th item relative to first 3 etc Average time = n X n-1 divided by 2

#6
Front (Question)

Quick and merge sort formula

Back (Answer)

Nlogn

#7
Front (Question)

Benefits of quick sort (and merge sort)

Back (Answer)

Divide and conquer method used reduces processor time required to process comparisons and swaps Creates two half size problems Combines solutions of small problem to original one

#8
Front (Question)

How corrective maintenance could be avoided? Why is corrective maintenance required?

Back (Answer)

If error is discovered following app release Carry out project life cycle correctly during development - Design, Implementation, Testing etc

#9
Front (Question)

Linked list description

Back (Answer)

New node created to facilitate new data Link of previous node in list updated to point to new node New node link directed to next node in the list

#10
Front (Question)

How a 2D Array could be used to imlement a maze

Back (Answer)

2D string array used Out of bounds represented by X Full or used areas represented by 1 Empty or unused represented by 0