C021TV-I2-S2.

Slides:



Advertisements
Similar presentations
Theory of Computer Science - Algorithms
Advertisements

Symbol Table.
1 Overview Assignment 4: hints Memory management Assignment 3: solution.
Map Collections and Custom Collection Classes Chapter 14.
Programming and Data Structure
Overview of Data Structures and Algorithms
The Assembly Language Level
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Variables and Constants
COSC 120 Computer Programming
1 CSE1301 Computer Programming Lecture 31: List Processing (Search)
Program Design and Development
Chapter 2: Input, Processing, and Output
COMP 171 Data Structures and Algorithms Tutorial 10 Hash Tables.
Chapter 10 Implementing Subprograms. Copyright © 2007 Addison-Wesley. All rights reserved. 1–2 Semantics of Call and Return The subprogram call and return.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
Moving To Code 3 More on the Problem-Solving Process §The final step in the problem-solving process is to evaluate and modify (if necessary) the program.
Data Structures 1- Course Syllabus. 2- Introduction about Data Structures.
Identifiers and Assignment Statements. Data structures In any programming language you need to refer to data The simplest way is with the actual data.
CIS Computer Programming Logic
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
Computers Data Representation Chapter 3, SA. Data Representation and Processing Data and information processors must be able to: Recognize external data.
VCE IT Theory Slideshows By Mark Kelly vceit.com Data Types 1 a.
Comparing AlgorithmsCSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Complexity Reading: Kolman, Sections 4.6, 5.2, and 5.3.
Comp 245 Data Structures Linked Lists. An Array Based List Usually is statically allocated; may not use memory efficiently Direct access to data; faster.
CS212: DATA STRUCTURES Lecture 1: Introduction. What is this course is about ?  Data structures : conceptual and concrete ways to organize data for efficient.
CSE1301 Computer Programming: Lecture 26 List Processing (Search)
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Data Structures and Algorithms Lecture 1 Instructor: Quratulain Date: 1 st Sep, 2009.
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
ITEC 109 Lecture 7 Operations. Review Variables / Methods Functions Assignments –Purpose? –What provides the data? –What stores the data? –What type of.
Chapter 15 A External Methods. © 2004 Pearson Addison-Wesley. All rights reserved 15 A-2 A Look At External Storage External storage –Exists beyond the.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
An Introduction to Programming with C++ Sixth Edition Chapter 13 Strings.
Circular linked list A circular linked list is a linear linked list accept that last element points to the first element.
1 Data Structures CSCI 132, Spring 2014 Lecture 33 Hash Tables.
Pointers 1. Introduction Declaring pointer variables Pointer operators Pointer arithmetic 2 Topics to be Covered.
© 2006 Pearson Addison-Wesley. All rights reserved15 A-1 Chapter 15 External Methods.
Introduction to Algorithm Complexity Bit Sum Problem.
Sections Basic Data Structures. 1.5 Data Structures The way you view and structure the data that your programs manipulate greatly influences your.
Data Types Chapter 6: Data Types Lectures # 13. Topics Chapter 6: Data Types 2 Introduction Primitive Data Types Character String Types Array Types Associative.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Code Generation Instruction Selection Higher level instruction -> Low level instruction Register Allocation Which register to assign to hold which items?
Introduction toData structures and Algorithms
Choosing Data Types Database Administration Fundamentals
Val Manes Department of Math & Computer Science
Chapter 2: Input, Processing, and Output
Lecture – 2 on Data structures
Chapter 10: Void Functions
C Language VIVA Questions with Answers
Ch. 8 File Structures Sequential files. Text files. Indexed files.
Chapter 1. Introduction to Computers and Programming
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
CSCE 210 Data Structures and Algorithms
Basic notes on pointers in C
Introduction to the C Language
What time is it?. What time is it? Major Concepts: a data structure model: basic representation of data, such as integers, logic values, and characters.
Advance Database System
Revision of C++.
C021TV-I2-S4.
C Programming Pointers
Symbol Table 薛智文 (textbook ch#2.7 and 6.5) 薛智文 96 Spring.
Chapter 2: Input, Processing, and Output
Chapter 9: Pointers and String
COP3530- Data Structures Introduction
Algorithms For use in Unit 2 Exam.
C Programming Lecture-3 Keywords, Datatypes, Constants & Variables
Variables and Constants
Constants, Variables and Data Types
Presentation transcript:

C021TV-I2-S2

I.2 Algorithmics Tasks Elementary instructions Algorithmic culture Variables Elementary instructions Algorithmic culture

Variable ? A variable is a memory space where the program stores a value or a complex data structure. A variable is expected to change during execution of the program. 2

Variable ? A variable is a memory space where the program storages a value or a complex data structure. A variable is expected to change during execution of the program. Examples: The number of followers, of views on Youtube, of likes. . .(an integer) A pupil’s average (a real, or rather a floating point number) All the class’s marks (a chart, a chart of charts, a database) A hash table, a doubly linked list . . . 2

A variable Must be created (depends on the language) May be assigned: i ← 0 May be modified: i ← i+1 May be the program’s entry.

Variable types integers floating point numbers chart of. . . Pointers towards. . . Composed structures of. . .and . . .(and . . .) . . . a characters chain an interval