computer science
play

Computer Science at the MATH/PHYS departement of ETH Zrich. Place - PowerPoint PPT Presentation

Welcome to the Course Informatik Computer Science at the MATH/PHYS departement of ETH Zrich. Place and time: Course at D-MATH/D-PHYS of ETH Zurich Tuesday 13:15 - 15:00, ML D28, ML E12. Pause 14:00 - 14:15, slight shift possible. Malte


  1. Welcome to the Course Informatik Computer Science at the MATH/PHYS departement of ETH Zürich. Place and time: Course at D-MATH/D-PHYS of ETH Zurich Tuesday 13:15 - 15:00, ML D28, ML E12. Pause 14:00 - 14:15, slight shift possible. Malte Schwerhoff, Felix Friedrich Course web page AS 2018 ❤tt♣✿✴✴❧❡❝✳✐♥❢✳❡t❤③✳❝❤✴✐❢♠♣ 1 2 Team Registration for Exercise Sessions chef assistant Vytautas Astrauskas back office Inna Grijnevitch Martin Clochard Pavol Bielik Registration via web page assistants Eliza Wszola Moritz Schneider Alexander Hedges Patrik Hadorn Registration already open Viera Klasovita Philippe Schlattner 19 groups in total: 9 Tuesday 3-5pm, 10 Wednesday 10-12am Max Egli Yannik Ammann Christopher Lehner Adrian Langenbach 16 groups in German, 3 groups in English Orhan Saeedi David Baur Maximillian Holst Corminboeuf Etienne Benjamin Rothenberger Tobias Klenze David Sommer Sefidgar Seyed Reza lecturers Dr. Malte Schwerhoff / Dr. Felix Friedrich 3 4

  2. Procedure Exercises The solution of the weekly exercises is thus voluntary but stronly Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Tue Wed . . . V V recommended. Ü Ü Ü Ü Ü Ü Ü Issuance Submission Preliminary Discussion StudyCenter Discussion Exercises availabe at lectures Preliminary discussion in the following exercise session (on the same/next day) StudyCenter ( st✉❞②❝❡♥t❡r✳❡t❤③✳❝❤ ) Solution must be submitted at latest one day before the next lecture (23:59h) Discussion of the exercise in the session one week after the submission. Feedback will be provided in the week after the submission. 5 6 No lacking resources! Online Tutorial For the exercises we use an online development environment that requires only a browser, internet connection and your ETH login. If you do not have access to a computer: there are a a lot of computers publicly For a smooth course entry we provide an online C++ tutorial accessible at ETH. Goal: leveling of the different programming skills. Written mini test for your self assessment in the second exercise session. 7 8

  3. Exams Offer (VVZ) The exam (in examination period 2018) will cover During the semester we offer weekly programming exercises that are graded. Points achieved will be taken as a bonus to the exam. Lectures content (lectures, handouts) The bonus is proportional to the score achieved in specially Exercise content (exercise sessions, exercises). marked bonus tasks, where a full score equals a bonus of 0.25. The admission to specially marked bonus depends on the Written exam. successful completion of other exercises. The achieved mark We will test your practical skills (programming skills) and theoretical knowledge bonus expires as soon as the lecture is given anew. (background knowledge, systematics). 9 10 Offer (Concretely) Academic integrity 3 bonus exercises in total; 2/3 of the points suffice for the exam bonus of 0.25 marks Rule: You submit solutions that you have written yourself and that You can, e.g. fully solve 2 bonus exercises, or solve 3 bonus you have understood. exercises to 66% each, or ... We check this (partially automatically) and reserve our rights to Bonus exercises must be unlocked ( → experience points) by invite you to interviews. successfully completing the weekly exercises Should you be invited to an interview: don’t panic. Primary we It is again not necessary to solve all weekly exercises completely presume your innocence and want to know if you understood what in order to unlock a bonus exercise you have submitted. Details: course website, exercise sessions, online exercise system (Code Expert) 11 12

  4. Exercise group registration I Exercise group registration II Register with the subsequent dialog for an exercise group. Visit ❤tt♣✿✴✴❡①♣❡rt✳❡t❤③✳❝❤✴❡♥r♦❧❧✴❆❙✶✽✴✐❢♠♣ Log in with your nethz account. 13 14 Overview Programming Exercise D: description E: History A: compile B: run C: test 15 16

  5. Test and Submit Where is the Save Button? Submission The file system is transaction based and is saved permanently (“autosave”). When opening a project it is found in the most recent observed state. The current state can be saved as (named) snaphot . It is always possible to return to saved snapshot. Test The current state can be submitted (as snapshot). Additionally, each saved named snapshot can be submitted. 17 18 Snapshots Literature The course is designed to be self explanatory. Skript together with the course Informatik at the D-MATH/D-PHYS department. Recommended Literature Look at snapshot B. Stroustrup. Einführung in die Programmierung mit C++ , Pearson Studium, 2010. B. Stroustrup, The C++ Programming Language (4th Edition) Addison-Wesley, 2013. Submission A. Koenig, B.E. Moo, Accelerated C++ , Adddison Wesley, 2000. B. Stroustrup, The design and evolution of C++ , Addison-Wesley, 1994. Go Back 19 20

  6. Credits Lecture: Andere Quellen werden hier am Rand in dieser Form angegeben. Original version by Prof. B. Gärtner and Dr. F. Friedrich With changes from Dr. F. Friedrich, Dr. H. Lehner, Dr. M. Schwerhoff Script: Prof. B. Gärtner Code Expert: Dr. H. Lehner, David Avanthay and others 21

  7. Computer Science 1. Introduction Course at D-MATH/D-PHYS of ETH Zurich Computer Science: Definition and History, Algorithms, Turing Malte Schwerhoff, Felix Friedrich Machine, Higher Level Programming Languages, Tools, The first ❈✰✰ Program and its Syntactic and Semantic Ingredients AS 2018 1 22 What is Computer Science? Computer Science vs. Computers ❤tt♣✿✴✴❧❛r❝✳✉♥t✳❡❞✉✴✐❛♥✴r❡s❡❛r❝❤✴❝s❡❞✉❝❛t✐♦♥✴❢❡❧❧♦✇s✶✾✾✶✳♣❞❢ Computer science is not about machines, in the same way The science of systematic processing of informations ,. . . that astronomy is not about telescopes. . . . particularly the automatic processing using digital computers. Mike Fellows, US Computer Scientist (1991) (Wikipedia, according to “Duden Informatik”) 23 24

  8. Computer Science � = Computer Literacy Computer Science vs. Computers Computer literacy: user knowledge Handling a computer Computer science is also concerned with the development of fast Working with computer programs for text processing, email, computers and networks. . . presentations . . . . . . but not as an end in itself but for the systematic processing of informations . Computer Science Fundamental knowledge How does a computer work? How do you write a computer program? 25 26 ETH: pioneer of modern computer science ETH: pioneer of modern computer science 1950: ETH rents the Z4 from Konrad Zuse, the only working 1956: computer in Europe at that time. Neue Zürcher Zeitung, 30. August 1950 http://de.wikipedia.org/wiki/ERMETH 27 28

  9. ETH: pioneer of modern computer science ETH: pioneer of modern computer science 1958–1963: Entwicklung von ALGOL 60 (der ersten formal definierten Programmiersprache), unter anderem durch Heinz ❤tt♣✿✴✴✇✇✇✳✐♥❢✳❡t❤③✳❝❤✴♥❡✇s✲❛♥❞✲❡✈❡♥ts✴s♣♦t❧✐❣❤ts✴✶✾✻✹✳❤t♠❧ Rutishauer, ETH Vortrag Walter Gander, 50 Jahre Programmieren, ETH Zürich, 2014 Die Klasse 1964 im Jahr 2015 (mit einigen Gästen) 1964: Erstmals können ETH-Studierende selbst einen Computer programmieren (die CDC 1604, gebaut von Seymour Cray). 29 30 ETH: pioneer of modern computer science Back from the past: This course 1968–1990: Niklaus Wirth entwickelt an der ETH die Programmiersprachen Pascal, Modula-2 und Oberon und 1980 die Lilith , einen der ersten Computer mit grafischer Benutzeroberfläche. Systematic problem solving with algorithms and the programming language ❈✰✰ . Hence: not only but also programming course. 31 32

  10. Algorithm: Fundamental Notion of Computer Science Oldest Nontrivial Algorithm Euclidean algorithm (from the elements from Euklid, 3. century B.C.) Algorithm: Instructions to solve a problem step by step Input: integers a > 0 , b > 0 Execution does not require any intelligence, but precision (even Output: gcd of a und b computers can do it) ❤tt♣✿✴✴❞❡✳✇✐❦✐♣❡❞✐❛✳♦r❣✴✇✐❦✐✴❆❧❣♦r✐t❤♠✉s according to Muhammed al-Chwarizmi , While b � = 0 author of an arabic If a > b then computation textbook (about 825) a ← a − b else: b ← b − a Result: a . a b a b a b a b “Dixit algorizmi. . . ” (Latin translation) 33 34 Algorithms: 3 Levels of Abstractions Euklid in the Box Speicher 1. Core idea (abstract) : 0 1 2 3 4 5 6 7 8 9 the essence of any algorithm (“Eureka moment”) R > L ? L = 0? L − R R − L [ 8 ] [ 9 ] springe springe a b springe 2. Pseudo code (semi-detailed) : → L → R stop → [ 8 ] zu 0 → [ 9 ] zu 0 zu 6 made for humans (education, correctness and efficiency discussions, proofs Programmcode Daten 3. Implementation (very detailed) : Daten While b � = 0 made for humans & computers (read- & executable, specific If a > b then L inks R echts programming language, various implementations possible) a ← a − b else: a b Euclid: Core idea and pseudo code shown, implementation yet b ← b − a Ergebnis: a . missing Register 35 36

Recommend


More recommend