Back to marketplace

Sorting Algorithms

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

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

Card preview (11)

#1
Front (Question)

Usability Testing

Back (Answer)

Aims to grade the ease of use of a program The software should be easy to understand and be suitable for everyone

#2
Front (Question)

Improved Bubble Sort

Back (Answer)

Boolean variable called sorted introduced in order to be set to true when no swaps have occurred in a pass

#3
Front (Question)

Insertion Sort

Back (Answer)

PROCEDURE DECLARE listlength initially length (list) DECLARE current and position as integer initially 0 FOR index from 1 TO list length -1 DO SET current TO list (index) and position TO index WHILE position > 0 AND list position-1 > current SET list position TO list position -1 SET position TO position -1 END WHILE SET list(position) TO current followed by END FOR

#4
Front (Question)

Selection Sort Using Two Lists setup

Back (Answer)

Procedure selection sort DECLARE dummy INITIALLY “X” DECLARE comparisons, passes, minimum position initially 0

#5
Front (Question)

Describe how an insertion sort would reorder items

Back (Answer)

Runs through the list comparing the current item in the array with the one before it If the item prior to the current item is more/less than the current item then it moves into the current items place and the current item moves back where the gap was left from the move prior to the completion of the fixed loop

#6
Front (Question)

Algorithm for removing an item from the queue top

Back (Answer)

IF front = back THEN ELSE SET front TO front -1 END IF

#7
Front (Question)

Selection Sort using two lists FOR setup

Back (Answer)

FOR listBcounter FROM 0 TO listlength DO SET passes to passes + 1 SET minimum position TO listBcounter

#8
Front (Question)

Selection sort using two lists after FOR setup

Back (Answer)

FOR listAcounter FROM 0 to listlength DO SET comparisons TO comparisons + 1 IF listA(listAcounter) < listA(minimumposition) THEN SET minimumposition TO listAcounter

#9
Front (Question)

Selection sort using two lists final part

Back (Answer)

END IF END FOR SET listb(listBcounter) TO listA(minimum position) SET lista(minimumposition) TO dummy END FOR SEND comparisons message & comparisons SEND passes message and passes to display END procedure

#10
Front (Question)

Describe adding a new item to a linked list

Back (Answer)

New node added to store data, pointer set to location of next item in list Address of new node stored in item prior in the list

#11
Front (Question)

Explain why a hotel should inform customers of a security breach and advice they should give

Back (Answer)

Under Data Protection Act there is an obligation to ensure that personal data is held securely Customers to be informed and encouraged to contact their bank to check for unauthorised use