BITL-CS2: Difference between revisions

From DiLab
Jump to navigation Jump to search
Content deleted Content added
Line 42: Line 42:
==== 06.01.20 ====
==== 06.01.20 ====
|
|
'''Course Introduction'''
'''<big>Course Introduction</big>'''




Line 53: Line 53:
==== 08.01.20 ====
==== 08.01.20 ====
|
|
'''IDE Setup. Scala Introduction'''
'''<big>IDE Setup. Scala Introduction</big>'''
* [https://www.dropbox.com/s/mgo4xacl5gfheol/L01_Scala_intro_1.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/mgo4xacl5gfheol/L01_Scala_intro_1.pdf?raw=1 Slides]


Line 69: Line 69:
==== 10.01.20 ====
==== 10.01.20 ====
|
|
'''Scala Types and Reading Files'''
'''<big>Scala Types and Reading Files</big>'''
* [https://www.dropbox.com/s/i1x8qeldz4skb9f/L02_Scala_intro_2.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/i1x8qeldz4skb9f/L02_Scala_intro_2.pdf?raw=1 Slides]


Line 89: Line 89:
==== 13.01.20 ====
==== 13.01.20 ====
|
|
'''Unit Testing'''
'''<big>Unit Testing</big>'''
* [https://www.dropbox.com/s/7zeact2v8k9a1y7/L03_Unit_testing.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/7zeact2v8k9a1y7/L03_Unit_testing.pdf?raw=1 Slides]


Line 109: Line 109:
==== 15.01.20 ====
==== 15.01.20 ====
|
|
'''Practice Unit Testing'''
'''<big>Practice Unit Testing</big>'''




Line 118: Line 118:
==== 17.01.20 ====
==== 17.01.20 ====
|
|
'''Classes and Objects'''
'''<big>Classes and Objects</big>'''
* [https://www.dropbox.com/s/wzljvj7tisf97gu/L04_Classes.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/wzljvj7tisf97gu/L04_Classes.pdf?raw=1 Slides]


Line 135: Line 135:
==== 20.01.20 ====
==== 20.01.20 ====
|
|
'''Model of Execution 1'''
'''<big>Model of Execution 1</big>'''
* [https://www.dropbox.com/s/4ktq1dldxyt1j7v/L05_Execution_1.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/4ktq1dldxyt1j7v/L05_Execution_1.pdf?raw=1 Slides]


Line 151: Line 151:
==== 22.01.20 ====
==== 22.01.20 ====
|
|
'''Model of Execution 2'''
'''<big>Model of Execution 2</big>'''
* [https://www.dropbox.com/s/hgiwb9r170usv34/L06_Execution_2.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/hgiwb9r170usv34/L06_Execution_2.pdf?raw=1 Slides]


Line 166: Line 166:
==== 24.01.20 ====
==== 24.01.20 ====
|
|
'''Physics Engine Quiz'''
'''<big>Physics Engine Quiz</big>'''




Line 178: Line 178:
==== 27.01.20 ====
==== 27.01.20 ====
|
|
'''Inheritance'''
'''<big>Inheritance</big>'''
* [https://www.dropbox.com/s/tc0hdxyhn2e78ej/L07_Inheritance.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/tc0hdxyhn2e78ej/L07_Inheritance.pdf?raw=1 Slides]


Line 194: Line 194:
==== 29.01.20 ====
==== 29.01.20 ====
|
|
'''Level 1 Quiz'''
'''<big>Level 1 Quiz</big>'''




Line 204: Line 204:
==== 31.01.20 ====
==== 31.01.20 ====
|
|
'''Polymorphism and JSON'''
'''<big>Polymorphism and JSON</big>'''
* [https://www.dropbox.com/s/zimg0h83faqu6uy/L08_Polymorphism.pdf?raw=1 Slides]
* [https://www.dropbox.com/s/zimg0h83faqu6uy/L08_Polymorphism.pdf?raw=1 Slides]


Line 223: Line 223:
==== 03.02.20 ====
==== 03.02.20 ====
|
|
'''Design Pattern: State Pattern 1'''
'''<big>Design Pattern: State Pattern 1</big>'''


'''Objective''': You will gain experience with the state design pattern to dynamically change the behavior of an object
'''Objective''': You will gain experience with the state design pattern to dynamically change the behavior of an object
Line 237: Line 237:
==== 05.02.20 ====
==== 05.02.20 ====
|
|
'''Design Pattern: State Pattern 2'''
'''<big>Design Pattern: State Pattern 2</big>'''


'''Objective''': Gain more familiarity with the state design pattern by reviewing the Jumper code
'''Objective''': Gain more familiarity with the state design pattern by reviewing the Jumper code
Line 247: Line 247:
==== 07.02.20 ====
==== 07.02.20 ====
|
|
'''Design Pattern: State Pattern 3'''
'''<big>Design Pattern: State Pattern 3</big>'''


'''Objective''': Gain more familiarity with the state design pattern
'''Objective''': Gain more familiarity with the state design pattern
Line 257: Line 257:
==== 10.02.20 ====
==== 10.02.20 ====
|
|
'''GUI'''
'''<big>GUI</big>'''


'''Objective''': Build desktop GUIs
'''Objective''': Build desktop GUIs
Line 276: Line 276:
==== 12.02.20 ====
==== 12.02.20 ====
|
|
'''Design Architecture: MVC'''
'''<big>Design Architecture: MVC</big>'''


'''Objective''': Become familiar with the MVC architecture pattern and its benefits
'''Objective''': Become familiar with the MVC architecture pattern and its benefits
Line 290: Line 290:
==== 14.02.20 ====
==== 14.02.20 ====
|
|
'''Calculator Quiz'''
'''<big>Calculator Quiz</big>'''




Line 302: Line 302:
==== 17.02.20 ====
==== 17.02.20 ====
|
|
'''Actors Introduction'''
'''<big>Actors Introduction</big>'''


'''Objective''': Write programs with multiple pieces of code executing at the same time
'''Objective''': Write programs with multiple pieces of code executing at the same time
Line 319: Line 319:
==== 19.02.20 ====
==== 19.02.20 ====
|
|
'''Level 2 Quiz'''
'''<big>Level 2 Quiz</big>'''




Line 329: Line 329:
==== 21.02.20 ====
==== 21.02.20 ====
|
|
'''Testing Actors and Database Connections'''
'''<big>Testing Actors and Database Connections</big>'''


'''Objective''': Write unit tests for actors and connect to a MySQL server
'''Objective''': Write unit tests for actors and connect to a MySQL server
Line 350: Line 350:
==== 24.02.20 ====
==== 24.02.20 ====
|
|
'''Web Sockets 1'''
'''<big>Web Sockets 1</big>'''


'''Objective''': Enable 2-way communication between the browser and web server
'''Objective''': Enable 2-way communication between the browser and web server
Line 365: Line 365:
==== 26.02.20 ====
==== 26.02.20 ====
|
|
'''Web Sockets 2'''
'''<big>Web Sockets 2</big>'''


'''Objective''': Connect a Scala front end to a web socket server
'''Objective''': Connect a Scala front end to a web socket server
Line 379: Line 379:
==== 28.02.20 ====
==== 28.02.20 ====
|
|
'''Actors Application with Web Sockets'''
'''<big>Actors Application with Web Sockets</big>'''




Line 388: Line 388:
==== 02.03.20 ====
==== 02.03.20 ====
|
|
'''MMO Architecture 1'''
'''<big>MMO Architecture 1</big>'''


'''Objective''': See an example using the MMO architecture form this class
'''Objective''': See an example using the MMO architecture form this class
Line 399: Line 399:
==== 04.03.20 ====
==== 04.03.20 ====
|
|
'''MMO Architecture 2'''
'''<big>MMO Architecture 2</big>'''


'''Objective''': Explore the MMO architecture applied to the course project
'''Objective''': Explore the MMO architecture applied to the course project
Line 409: Line 409:
==== 06.03.20 ====
==== 06.03.20 ====
|
|
'''Clicker Quiz'''
'''<big>Clicker Quiz</big>'''




Line 421: Line 421:
==== 09.03.20 ====
==== 09.03.20 ====
|
|
'''Custom Sorting with First-Order Functions'''
'''<big>Custom Sorting with First-Order Functions</big>'''


'''Objective''': Explore custom sorting in scala and gain experience with function and type parameters
'''Objective''': Explore custom sorting in scala and gain experience with function and type parameters
Line 437: Line 437:
==== 11.03.20 ====
==== 11.03.20 ====
|
|
'''Level 3 Quiz'''
'''<big>Level 3 Quiz</big>'''




Line 447: Line 447:
==== 13.03.20 ====
==== 13.03.20 ====
|
|
'''Merge Sort and Recursion'''
'''<big>Merge Sort and Recursion</big>'''


'''Objective''': Gain an understanding of recursion combined with first-order functions and type parameters
'''Objective''': Gain an understanding of recursion combined with first-order functions and type parameters
Line 463: Line 463:
==== 16.03.20 ====
==== 16.03.20 ====
|
|
'''Linked List'''
'''<big>Linked List</big>'''


'''Objective''': Understand the structure of a linked list
'''Objective''': Understand the structure of a linked list
Line 478: Line 478:
==== 18.03.20 ====
==== 18.03.20 ====
|
|
'''Linked List Algorithms'''
'''<big>Linked List Algorithms</big>'''


'''Objective''': Explore how various operations are performed on a linked list
'''Objective''': Explore how various operations are performed on a linked list
Line 492: Line 492:
==== 20.03.20 ====
==== 20.03.20 ====
|
|
'''Stack and Queue'''
'''<big>Stack and Queue</big>'''


'''Objective''': Use a linked list to implement the functionality of a stack and queue
'''Objective''': Use a linked list to implement the functionality of a stack and queue
Line 506: Line 506:
==== 23.03.20 ====
==== 23.03.20 ====
|
|
'''Binary Tree and Traversals'''
'''<big>Binary Tree and Traversals</big>'''


'''Objective''': Gain familiarity with the structure of binary trees and how to traverse existing trees
'''Objective''': Gain familiarity with the structure of binary trees and how to traverse existing trees
Line 524: Line 524:
==== 25.03.20 ====
==== 25.03.20 ====
|
|
'''Binary Search Tree'''
'''<big>Binary Search Tree</big>'''


'''Objective''': Explore an application of binary trees by using them for searching and sorting
'''Objective''': Explore an application of binary trees by using them for searching and sorting
Line 537: Line 537:
==== 27.03.20 ====
==== 27.03.20 ====
|
|
'''Genetic Algorithm Quiz'''
'''<big>Genetic Algorithm Quiz</big>'''




Line 547: Line 547:
==== 30.03.20 ====
==== 30.03.20 ====
|
|
'''Graph Representations and Breath-First Search'''
'''<big>Graph Representations and Breath-First Search</big>'''


'''Objective''': Learn how to represent a graph in code and work with that representation
'''Objective''': Learn how to represent a graph in code and work with that representation
Line 563: Line 563:
==== 01.04.20 ====
==== 01.04.20 ====
|
|
'''Level 4 Quiz'''
'''<big>Level 4 Quiz</big>'''




Line 573: Line 573:
==== 03.04.20 ====
==== 03.04.20 ====
|
|
'''Pathfinding with Breath-First Search'''
'''<big>Pathfinding with Breath-First Search</big>'''


'''Objective''': Find the shortest path between two nodes using BFS
'''Objective''': Find the shortest path between two nodes using BFS
Line 583: Line 583:
==== 06.04.20 ====
==== 06.04.20 ====
|
|
'''Review and Examples'''
'''<big>Review and Examples</big>'''




Line 593: Line 593:
==== 08.04.20 ====
==== 08.04.20 ====
|
|
'''MMO Quiz'''
'''<big>MMO Quiz</big>'''




Line 603: Line 603:
==== 10.04.20 ====
==== 10.04.20 ====
|
|
'''Holiday'''
'''<big>Holiday</big>'''




Line 612: Line 612:
==== 13.04.20 ====
==== 13.04.20 ====
|
|
'''Holiday'''
'''<big>Holiday</big>'''




Line 621: Line 621:
==== 15.04.20 ====
==== 15.04.20 ====
|
|
'''Consultation week'''
'''<big>Consultation week</big>'''




Line 630: Line 630:
==== 17.04.20 ====
==== 17.04.20 ====
|
|
'''Consultation week'''
'''<big>Consultation week</big>'''




Line 640: Line 640:
==== 20.04.20 ====
==== 20.04.20 ====
|
|
'''(Exam week)'''
'''<big>(Exam week)</big>'''




Line 649: Line 649:
==== 22.04.20 ====
==== 22.04.20 ====
|
|
'''Exam week - Final Exam'''
'''<big>Exam week - Final Exam</big>'''




Line 659: Line 659:
==== 24.04.20 ====
==== 24.04.20 ====
|
|
'''(Exam week)'''
'''<big>(Exam week)</big>'''





Revision as of 14:41, 27 January 2020

Introduction to Computer Science II

Shortcuts: Calendar | Assignments | Resources | Today (if there is a class)

Introduction

What is Computer Science?

Computer Science is the study of processes that interact with data and that can be represented as data in the form of programs. It enables the use of algorithms to manipulate, store, and communicate digital information.

Administrative information

Course Syllabus

Communication:

  • via slack: workspace name: bitl-cs2-2020
  • via email: use instructor's email address for personal communication
  • office hours: by appt.

Tests

Calendar

Date Topic Assignments, tests, deliverables

06.01.20

Course Introduction


Introduction to the course. Syllabus.

08.01.20

IDE Setup. Scala Introduction

Objective: Setup your IDE (IntelliJ) for Scala and Python development on your laptop and write a simple Scala program.

Reading/Reference:

10.01.20

Scala Types and Reading Files

Objective: Write a program that can read the lines of a file in a strongly typed language (Scala) and store values in a data structure

Reading/Reference:

13.01.20

Unit Testing

Objective: Test your own code without needing AutoLab

HW1 announced.

Reading/Reference:

15.01.20

Practice Unit Testing


17.01.20

Classes and Objects

Objective: Define and use classes

Reading/Reference:

  • Wikipedia: Class - Overview and reference (More detail than we'll cover in lecture)
  • Scala: Class - Application of Classes using Scala syntax
  • Python: Class - Application of Classes using Python syntax
  • Scala API - Reference for all Scala packages/classes/objects""

20.01.20

Model of Execution 1

Objective: Describe how the program stack and heap store values in your program

Reading/Reference:

22.01.20

Model of Execution 2

Objective: Use a debugger to see the state of your program during execution

Reading/Reference:

24.01.20

Physics Engine Quiz


HW2 announced.

27.01.20

Inheritance

Objective: You will be able to write abstract classes and concreted classes that inherent an abstract class

Reading/Reference:

29.01.20

Level 1 Quiz


  • Level 1 Quiz

31.01.20

Polymorphism and JSON

Objective: You will study polymorphism and apply it to use JSON in a strongly typed language

Reading/Reference:

03.02.20

Design Pattern: State Pattern 1

Objective: You will gain experience with the state design pattern to dynamically change the behavior of an object

Reading/Reference:

  • Due Project Demo 1

05.02.20

Design Pattern: State Pattern 2

Objective: Gain more familiarity with the state design pattern by reviewing the Jumper code

07.02.20

Design Pattern: State Pattern 3

Objective: Gain more familiarity with the state design pattern

10.02.20

GUI

Objective: Build desktop GUIs

Reading/Reference:

  • Lab Activity 4

12.02.20

Design Architecture: MVC

Objective: Become familiar with the MVC architecture pattern and its benefits

Reading/Reference:

14.02.20

Calculator Quiz


HW3 announced.

17.02.20

Actors Introduction

Objective: Write programs with multiple pieces of code executing at the same time

Reading/Reference:

  • Lab Activity 5

19.02.20

Level 2 Quiz


  • Level 2 Quiz

21.02.20

Testing Actors and Database Connections

Objective: Write unit tests for actors and connect to a MySQL server

Reading/Reference:

24.02.20

Web Sockets 1

Objective: Enable 2-way communication between the browser and web server

Reading/Reference:

  • Due Project Demo 2

26.02.20

Web Sockets 2

Objective: Connect a Scala front end to a web socket server

Reading/Reference:

28.02.20

Actors Application with Web Sockets


02.03.20

MMO Architecture 1

Objective: See an example using the MMO architecture form this class

  • Lab Activity 6

04.03.20

MMO Architecture 2

Objective: Explore the MMO architecture applied to the course project

06.03.20

Clicker Quiz


HW4 announced.

  • Due HW3: Clicker

09.03.20

Custom Sorting with First-Order Functions

Objective: Explore custom sorting in scala and gain experience with function and type parameters

Reading/Reference:

  • Lab Activity 7

11.03.20

Level 3 Quiz


  • Level 3 Quiz

13.03.20

Merge Sort and Recursion

Objective: Gain an understanding of recursion combined with first-order functions and type parameters

Reading/Reference:

16.03.20

Linked List

Objective: Understand the structure of a linked list

Reading/Reference:

  • Lab Activity 8

18.03.20

Linked List Algorithms

Objective: Explore how various operations are performed on a linked list

Reading/Reference:

20.03.20

Stack and Queue

Objective: Use a linked list to implement the functionality of a stack and queue

Reading/Reference:

23.03.20

Binary Tree and Traversals

Objective: Gain familiarity with the structure of binary trees and how to traverse existing trees

Reading/Reference:

  • Lab Activity 9

25.03.20

Binary Search Tree

Objective: Explore an application of binary trees by using them for searching and sorting

Reading/Reference:

27.03.20

Genetic Algorithm Quiz


  • Due HW4: Genetic Algorithm

30.03.20

Graph Representations and Breath-First Search

Objective: Learn how to represent a graph in code and work with that representation

Reading/Reference:

  • Project Demo 3

01.04.20

Level 4 Quiz


  • Level 4 Quiz

03.04.20

Pathfinding with Breath-First Search

Objective: Find the shortest path between two nodes using BFS

06.04.20

Review and Examples


  • Project Demo 3 (alt)

08.04.20

MMO Quiz


  • HW5: MMO

10.04.20

Holiday


13.04.20

Holiday


15.04.20

Consultation week


17.04.20

Consultation week


  • HWb: Bonus Homework

20.04.20

(Exam week)


22.04.20

Exam week - Final Exam


  • Final Exam

24.04.20

(Exam week)


Assignments

Assignment due dates are in the calendar.

Assignments are announced by the course Slack channel.

Every lecture has a lecture question that is due by midnight the same day. Submitting you work should be done in the respective GitHub repositories, as published in Slack.

Homeworks

HW1

HW1 description

HW2

HW2 description

HW3

[#HW3 HW3 description]

HW4

[#HW4 HW4 description]

Resources

Look for resources in the calendar, after the lecture objectives.

GitHub

Scala

IDE

Algorithms

Misc