Lect 0
Lect 0
Ankara University
Department of Computer Engineering
Introduction
• Divide 10 by 2 =5
• Multiply 5 by 5 = 25
• Add to 39 = 64
• Find square root of 64 = 8
• Subtract 5 from 8 : 3 - this is the result
See Article by K.Kılan, in TBD Bilişim No 80.
www.tbd.org.tr
Implementing Algorithms
• Algorithms can be carried out by people ...
(verbal/written instructions)
• Or by machines (alarm clock) ...
(mechanical instructions)
• Or by computers ...
(electrical instructions)
• Or by biological organisms
(neurons, amino acids, hormones...)
Data / Information
Logical View
• CPU (Central Processing Unit)
• Memory (RAM, ROM, Cache)
• Input Devices (keyboard, mouse, ...)
• Output Devices (Screen, printer, ...)
• Mass Storage Devices (disks, tapes)
Computer Block Diagram
CPU
ALU
Input Output
Unit Unit
Control Register
Unit Unit
Memory
Terminology
Algorithm Algoritma
Representation Gösterim
Coding Kodlama
Data (p.), Datum (s.) Veri
Information Bilgi
Programming language Programlama dili
High-level language Yüksek (üst) düzey dil
Low-level language Alt düzey dil
Terminology