299 views
# Artful Coding WT2022 Session 4 - 25. Oct. 2022, 17:00-18:30 Slides: https://tantemalkah.at/artful-coding/2022wt/slides/session4.html ## 17:00 , 15min : Algorithmic Name Remember Game All participants shuffle into a line and as a group execute the following algorithm, based on the line being the `list` and comparing their names alphabetically: ``` FUNC bubble_sort ( list ) : len = length( list ) i = 0 LOOP WHILE i < len : k = 0 LOOP WHILE k < len - i - 1 : IF list[k] > list[k+1] : swap( list[k] , list[k+1] ) END IF k = k + 1 END LOOP i = i + 1 END LOOP END FUNC ``` If the algorithm can be executed quickly, the group can do another attempt with a different type of characteristic for the comparison (e.g. height, semesters at the angewandte, ...) ## 17:15 , 25min : Input on loops ## 17:40 , 15min : Experimentation break ## 17:55 , 15min : Input on scope ## 18:10 , 20min : In-class exercise & co-working --- This page is part of the course website at https://tantemalkah.at/artful-coding All contents, where not otherwise noted, are licensed by [Andrea Ida Malkah Klaura](https://tantemalkah.at/) under a [CC-BY-SA 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1).