CPS 125 Lecture Notes - Lecture 1: Kilobyte, Computer, Problem Solving
Document Summary
Black box - used to achieve some task - does not think. Ex. calculate the sum of first 10000 integer numbers. Receives and generates input data, and processes data then provides output. Memory - ram - random access memory - user data stored and rom - read only memory(cannot be modified) aka operating system. Ram - has cells - and each cell has an address - unique identifier (number) - like a box where each item is numbered - to access the data you need to know the address. Using a computer system we can write a c program then once saved, it goes in the ram and is stored there as a collection of addresses. Data stored in the form of bytes. To solve a problem you implement an algorithm. Program in c is a result of an algorithm. Algorithm- how a problem is to be solved. Each programming language has it"s own syntax.