Group Activities for today:
Each student in the group should:
text
[x] This is a checkbox
[ ] Type some code
i = 21
for j = 0
x = 4
[ ] Type an equatio
n
[ ] insert an image
[ ] add a to-do list
[ ] change the color of text
[ ] tag a person in your group or @Lian Duan Jack, Layne, Cora, Sam @
/
Complete the following activities. You can copy the questions into your own page, but if you do, try to have your answers in a different color.
A set of instructions followed by a machine to complete a task
pigeonhole sort, BST inorder traversal
let a be a random number from 0 to 10
if a > 3
print "yes"
else print "no"
[24 | 21 | 55 | 8 | 76 | 6 | 2 | 66 | 50 | 82]
Algorithm InsertionSort(dataList)
// dataList is a zero-indexed list/array of sortable data
// n is the length of dataList
// algorithm modifies the dataList; returns the modified list
for i = 1 to n-1 do
let j = i
while j > 0 and dataList[j] < dataList[j-1] do
swap dataList[j] and dataList[j-1]
let j = j - 1
return dataList