DDC 2423 DATA STRUCTURE Main text:

Slides:



Advertisements
Similar presentations
Programming Languages and Paradigms
Advertisements

Abstract Data Types and Subprograms
ISBN Chapter 3 Describing Syntax and Semantics.
CS 355 – Programming Languages
Review. What to know You are responsible for all material covered in lecture, the readings, or the programming assignments There will also be some questions.
Chapter 4 Control Structures I. Objectives ► Examine relational and logical operators ► Explore how to form and evaluate logical (Boolean) expressions.
Software Engineering and Design Principles Chapter 1.
CSCE 210 Data Structures and Algorithms
Fall 2007CS 225 Introduction to Software Design Chapter 1.
Introduction to Software Design Chapter 1. Chapter 1: Introduction to Software Design2 Chapter Objectives To become familiar with the software challenge.
Program Design and Development
Data Structures Introduction. What is data? (Latin) Plural of datum = something given.
Chapter 8 . Sequence Control
Describing Syntax and Semantics
Basic Concepts Chapter 1 Objectives
Introduction to Software Design Chapter 1. Chapter 1: Introduction to Software Design2 Chapter Objectives To become familiar with the software challenge.
Object Oriented Data Structures
Introduction Ellen Walker CPSC 201 Data Structures Hiram College.
Introduction CS 3358 Data Structures. What is Computer Science? Computer Science is the study of algorithms, including their  Formal and mathematical.
Unit III : Introduction To Data Structures and Analysis Of Algorithm 10/8/ Objective : 1.To understand primitive storage structures and types 2.To.
Introduction. 2COMPSCI Computer Science Fundamentals.
Introduction to Software Design Chapter 1. Chapter Objectives  To become familiar with the software challenge and the software life cycle  To understand.
Computer Science Department Data Structures and Algorithms Lecture 1.
Lecture 1: Introduction and Overview CSCI 700 – Algorithms 1.
1 CSC 222: Computer Programming II Spring 2004 See online syllabus at: Course goals:
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
ALGORITHM CHAPTER 8. Chapter Outlines and Objectives  Define an algorithm and relate it to problem solving.  Define three construct and describe their.
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
Data Abstaraction Chapter 10.
90-723: Data Structures and Algorithms for Information Processing Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 1: Introduction Data.
Chapter 8 Abstract Data Types and Subprograms. 2 Chapter Goals Distinguish between an array-based visualization and a linked visualization Distinguish.
P ROGRAMMING L OGIC GWDA123 Sharon Kaitner, M.Ed. Winter 2015: Week 2.
CSCE 210 Data Structures and Algorithms
CSC 427: Data Structures and Algorithm Analysis
Cen 112 C Programming Özgür Örnek.
CSC 222: Object-Oriented Programming
Chapter 0: Introduction
CSC 222: Object-Oriented Programming
Run-Time Environments Chapter 7
CSC 222: Computer Programming II
Chapter 3 of Programming Languages by Ravi Sethi
Lecture 1 (UNIT -4) TREE SUNIL KUMAR CIT-UPES.
Recursion: The Mirrors
The Design and Analysis of Algorithms
Data Structures and Algorithms
GC211Data Structure Lecture2 Sara Alhajjam.
Graphs.
CSC 321: Data Structures Fall 2015
CSC 222: Object-Oriented Programming
About the Presentations
Programming Fundamentals
Control Structures (Structured Programming) for controlling the procedural aspects of programming CS1110 – Kaminski.
Introduction to Data Structures
Chapter 9 Structuring System Requirements: Logic Modeling
A finite sequence of operations that solves a given task
Coding Concepts (Basics)
Semantics In Text: Chapter 3.
Data Structures and Algorithms for Information Processing
Review CSE116 2/21/2019 B.Ramamurthy.
Binary Search Trees Chapter 7 Objectives
A programming language
Introduction to Data Structure
Revision of C++.
Chapter 9 Structuring System Requirements: Logic Modeling
Algebraic Specification Software Specification Lecture 34
Control Structures (Structured Programming) for controlling the procedural aspects of programming CS1110 – Kaminski.
COP3530- Data Structures Introduction
Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.
Structural Program Development: If, If-Else
Presentation transcript:

DDC 2423 DATA STRUCTURE Main text: Gilberg & Farouzan; Data Structure : A Pseudocode Approach with C++, Thomson, ISBN 0-534-95216-x

LEARNING OUTCOMES By the end of the course, students should be able to: Describe the essential concepts and theories of data structures. Apply abstract data types and write algorithms for linear list data structure and non-linear list data structures. Describe and use common sorting and searching methods as well as recursion. Design and build applications in linear list data structure including linked list, stack and queue using C++ language. Present or show the group project works.

CHAPTER 1: Introduction to Basic Concepts CHAPTER 2: List and Linked List CHAPTER 3: Stack CHAPTER 4: Queue CHAPTER 5: Recursion CHAPTER 6: Trees CHAPTER 7: Searching CHAPTER 8: Graph CHAPTER 9: Sorting

Introduction to Basic Concepts CHAPTER 1 Introduction to Basic Concepts

Pseudocode, Algorithm Header, Algorithm Analysis An English-like representation of the code required for an algorithm. Part English and part structured code. ALGORITHM HEADER Describes the parameter and lists any pre- and postconditions. IMPORTANT! Because often the programmer using the algorithms sees only the header information, not the complete algorithm. The header information must be complete enough.

Pseudocode, Algorithm Header, Algorithm Analysis Purpose, Conditions, and Return Purpose - A short statement about what the algorithm does. - Need to only describe the general algorithm processing, and should not attempt to describe all of the processing. Conditions - Two types: Precondition and Postcondition - Precondition: lists any precursor requirements for the parameters. - Postcondition: identifies any action taken and the status of any output parameters. Return - If there is any value to be returned. - Often there is none and no return condition is needed.

Pseudocode, Algorithm Header, Algorithm Analysis The analysis examines only those points that need to be emphasized or that may require some clarification. Programming statement constructs consists of sequence, selection, and loop. Sequence: a series that do not alter the execution path within an algorithm. Example statements such as assign, and add. Selection: evaluate one or more alternatives. If the alternatives are true, one path is taken. If the alternatives are false, a different path is taken. Example, if and else statements. Loop: iterates a block of code. Example, while loop.

The Abstract Data Types (ADT) History of programming concepts Spaghetti Code Modular Programming Object-oriented Programming

Atomic and Composite Data, Data Type Atomic Data Data that we choose to consider as a single, nondecomposable entity. Atomic Data Type: a set of atomic data having identical properties. It is defined by a set of values and a set of operations that act on the values. Composite Data The opposite of Atomic Data. Can be broken out into subfields that have meaning.

Atomic and Composite Data, Data Type Data Structure An aggregation of atomic and composite data type into a set with defined relationships. Structure: a set of rules that hold the data together. Data structures that at least can be used to support a list are an array, a linked list, or a file. Abstract Data Type (ADT) A data declaration packaged together with the operations that are meaningful on the data type. The used for all programmers. Consists of a set of definitions that allow programmers to use the functions while hiding the implementation.