Data Structures Introduction. What is data? (Latin) Plural of datum = something given.

Slides:



Advertisements
Similar presentations
PROGRAMMING LANGUAGE (JAVA) UNIT 42 BY ROBERT BUTTERFIELD TELEPHONE Data Structures and Algorithms.
Advertisements

Department of Computer Engineering Faculty of Engineering, Prince of Songkla University 1 5 – Abstract Data Types.
COMPSCI 105 S Principles of Computer Science 12 Abstract Data Type.
1-1 CMPT 225 Data Structures and Programming Instructor: Aaron Hunter Section: E300 Campus: Harbour Centre Semester: Spring 2007.
CHAPTER 3 COLLECTIONS Abstract Data Types. 2 A data type consists of a set of values or elements, called its domain, and a set of operators acting on.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Introduction and a Review of Basic Concepts
Course Introduction CS 1037 Fundamentals of Computer Science II.
Data Structures 1- Course Syllabus. 2- Introduction about Data Structures.
C o n f i d e n t i a l Developed By Nitendra NextHome Subject Name: Data Structure Using C Title: Overview of Data Structure.
Abstract Data Types (ADTs) Data Structures The Java Collections API
1 Chapter-01 Introduction to Computers and C++ Programming.
Language Evaluation Criteria
CIS Computer Programming Logic
Data Structures Winter What is a Data Structure? A data structure is a method of organizing data. The study of data structures is particularly important.
Introduction to Python
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
AS Computing Introduction to Programming. What is a Computer Program? A list of instructions that a computer must work through, in a logical sequence,
CS 102 Computers In Context (Multimedia)‏ 01 / 23 / 2009 Instructor: Michael Eckmann.
Introduction to Programming Peggy Batchelor.
Introduction. 2COMPSCI Computer Science Fundamentals.
Computer Science Department Data Structures and Algorithms Lecture 1.
Introduction to algorithm design and recursion CS125 Spring 2007 Arthur Kantor.
CS212: DATA STRUCTURES Lecture 1: Introduction. What is this course is about ?  Data structures : conceptual and concrete ways to organize data for efficient.
Chapter 1 Object Orientation: Objects and Classes.
CS 206 Introduction to Computer Science II 09 / 10 / 2009 Instructor: Michael Eckmann.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Data Structures and Algorithms Lecture 3 Instructor: Quratulain Date: 8 th September, 2009.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Xin Liu Feb 4, * Use midterm questions for previous 231/217 midterms for practices * ams
CSCI/CMPE 4341 Topic: Programming in Python Review: Exam I Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
Levels of Abstraction Computer Organization. Level of Abstraction u Provides users with concepts/tools to solve problem at that level u Implementation.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Data Structures and Algorithms Dr. Tehseen Zia Assistant Professor Dept. Computer Science and IT University of Sargodha Lecture 1.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
1 Introduction  Algorithms  Data structures  Abstract data types  Programming with lists and sets © 2008 David A Watt, University of Glasgow Algorithms.
Topic 2 Collections. 2-2 Objectives Define the concepts and terminology related to collections Discuss the abstract design of collections.
Introduction to Objects and Encapsulation Computer Science 4 Mr. Gerb Reference: Objective: Understand Encapsulation and abstract data types.
Data Handling in Algorithms. Activity 1 Starter Task: Quickly complete the sheet 5mins!
REEM ALMOTIRI Information Technology Department Majmaah University.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
BITS Pilani Pilani Campus Data Structure and Algorithms Design Dr. Maheswari Karthikeyan Lecture1.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Tevfik Bultan Lecture 6: Stepwise refinement revisited, Midterm review.
Maitrayee Mukerji. INPUT MEMORY PROCESS OUTPUT DATA INFO.
Lecture 1 Data Structures Aamir Zia. Introduction Course outline Rules and regulations Course contents Good Programming Practices Data Types and Data.
Introduction To Algorithm and Data Structures Course Teacher: Moona Kanwal -Algorithm Design -Algorithm Analysis -Data structures -Abstract Data Type.
Mohammed I DAABO COURSE CODE: CSC 355 COURSE TITLE: Data Structures.
Introduction toData structures and Algorithms
Basic Concepts: computer, program, programming …
Computer Organization
IGCSE 4 Cambridge Data types and arrays Computer Science Section 2
DDC 2423 DATA STRUCTURE Main text:
CMSC201 Computer Science I for Majors Lecture 22 – Binary (and More)
Topic: Python’s building blocks -> Variables, Values, and Types
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Abstraction A tool (concept) to manage complexity
Introduction to Data Structure
And now for something completely different . . .
Learning to Program in Python
Winter 2018 CISC101 12/1/2018 CISC101 Reminders
Data Structures: Introductory lecture
Introduction to Computer Science for Majors II
CS105 Introduction to Computer Concepts Intro to programming
Introduction to Data Structure
ICT Programming Lesson 1:
COP3530- Data Structures Introduction
Introduction to Computer Science
Presentation transcript:

Data Structures Introduction

What is data? (Latin) Plural of datum = something given.

Data and Operations "Data" and "Operations" are to Computer Science as "Point" and "Line" are to Geometry. Undefined terms, the starting point.

Computers, Algorithms, Programs Computers are machines that perform operations on data Algorithms are sequences of operations to be performed on particular types of data in order to achieve a meaningful outcome. Programs are algorithms that are coded in a particular syntax or language such as Assembly, C++, Java, or Python

Data vs. information Data becomes information when it is structured in some way that has meaning.

Ways of structuring data Bit strings (0's and 1's) Integers Floating point numbers Logical values (True, False) Characters Strings Lists, Queues, Dequeus, Trees Files, pictures …

Operations Each data structure has its own set of operations. Integers: Add, multiply, divide, compare… Strings of characters Concatenate, print, compare, substrings…

In Data Structures, we study Ways of structuring data Abstract Data Types (ADT's) e.g. Lists, Stacks, Queues, Trees, Graphs Operations on those data types Algorithms to manipulate ADT's e.g. Searching, Sorting, Recursion

ADT's encapsulate. Implementation Interface User Operations Data & Algorithms.

List 10 random 2-digit integers >>>from random import randint >>>[randint(10,100) for i in range(10)] [87, 35, 52, 88, 87, 60, 19, 19, 26, 72] Examples of encapsulation: randint(a,b): An algorithm not in Python range(n): Implemention is built in to Python List: An abstract data type

Use of Abstract Data Types Separates the problem of implementation from that of manipulation Allows the programmer to solve problems without regard to implementation. Allows the programmer to alter the implementation without affecting problems already solved.

Understanding Data Structures Helps you write better programs Makes you a better problem solver Helps you use computers more efficiently Helps you maintain programs more effectively

Why Python? Fact: (Alan Turing) Any computer (with a minimal set of operations) can, with enough time and memory, perform any task any other computer can do. Any programming language (with a minimal set of operations) can implement any algorithm that any other programming language can implement.

Python Has an impressive set of built-in data structures. New data structures can be implemented relatively easily. Interpreted language. You can try anything before compiling.