Required Background for ECOE 556. What do I need to catch up with? Basic data structures (Chapter 10) –Stack –Queue –Linked list –Array –Records (e.g.

Slides:



Advertisements
Similar presentations
Data Structures Through C
Advertisements

STACKS & QUEUES. Stacks Abstract data types An abstract data type (ADT) is an abstraction of a data structure An ADT specifies : –Data stored –Operations.
CS252: Systems Programming Ninghui Li Program Interview Questions.
0 of 37 Stacks and Queues Lecture of 37 Abstract Data Types To use a method, need to know its essentials: signature and return type o additionally,
Stacks, Queues, and Deques. 2 A stack is a last in, first out (LIFO) data structure Items are removed from a stack in the reverse order from the way they.
Introduction to C Programming CE Lecture 12 Circular Queue and Priority Queue Data Structures.
CS 206 Introduction to Computer Science II 03 / 04 / 2009 Instructor: Michael Eckmann.
Data Structure Dr. Mohamed Khafagy.
CS Data Structures II Review COSC 2006 April 14, 2017
Data Structures Michael J. Watts
Lecture # 02 07/02/2013Dr. Muhammad Umair 1. 07/02/2013Dr. Muhammad Umair 2  Numeric  Integer Numbers  0,10,15,4563 etc.  Fractional Number  10.5,
Data Structures & Algorithms
CS 206 Introduction to Computer Science II 03 / 06 / 2009 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 10 / 17 / 2008 Instructor: Michael Eckmann.
©Brooks/Cole, 2003 Chapter 12 Abstract Data Type.
CS 206 Introduction to Computer Science II 10 / 26 / 2009 Instructor: Michael Eckmann.
Midterm Exam Two Tuesday, November 25 st In class cumulative.
Data Structures from Cormen, Leiserson, Rivest & Stein.
1 Stack Data : a collection of homogeneous elements arranged in a sequence. Only the first element may be accessed Main Operations: Push : insert an element.
Stacks, Queues, and Deques. A stack is a last in, first out (LIFO) data structure –Items are removed from a stack in the reverse order from the way they.
Dynamic Sets and Data Structures Over the course of an algorithm’s execution, an algorithm may maintain a dynamic set of objects The algorithm will perform.
CS 206 Introduction to Computer Science II 10 / 28 / 2009 Instructor: Michael Eckmann.
Algorithms and Data Structures Representing Sequences by Arrays and Linked Lists.
DS.L.1 Lists, Stacks, and Queues (Review) Chapter 3 Overview Abstract Data Types Linked Lists, Headers, Circular Links Cursor (Array) Implementation Stacks.
Chapter 12 Data Structure Associate Prof. Yuh-Shyan Chen Dept. of Computer Science and Information Engineering National Chung-Cheng University.
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.
90-723: Data Structures and Algorithms for Information Processing Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 5: Stacks and Queues.
Week7 Stack Data Structures & Algorithms. Introduction to Stacks and Queues Widely used data structures Ordered List of element Easy to implement Easy.
Stacks and queues Basic operations Implementation of stacks and queues Stack and Queue in java.util Data Structures and Algorithms in Java, Third EditionCh04.
© 2006 Pearson Addison-Wesley. All rights reserved8 A-1 Chapter 8 Queues (slightly modified by Dan Fleck)
Adapted from instructor resources Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Course Review Midterm.
1 Chapter 7 Stacks and Queues. 2 Stack ADT Recall that ADT is abstract data type, a set of data and a set of operations that act upon the data. In a stack,
Foundation of Computing Systems Lecture 3 Stacks and Queues.
Stacks And Queues Chapter 18.
1 Linked-list, stack and queue. 2 Outline Abstract Data Type (ADT)‏ Linked list Stack Queue.
Cousin of the Stack.  An abstract data type (container class) in which items are entered at one end and removed from the other end  First In First.
1 Lecture 14: Queues Lecturer: Santokh Singh CompSci 105 SS 2005 Principles of Computer Science.
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Data Structures academy.zariba.com 1. Lecture Content 1.Linear Data Structures 2.Trees and Graphs* 3.Dictionaries and Hash Tables 4.Homework 2.
Data Structures Chapter 6. Data Structure A data structure is a representation of data and the operations allowed on that data. Examples: 1.Array 2.Record.
Data Structures for Midterm 2. C++ Data Structure Runtimes.
CSE205 Review Session SAMUEL & JESSA. Recursion WHAT IS RECURSION?  Recursion is a tool a programmer can use to invoke a function call on itself. 
UNIVERSAL COLLEGE OF ENGG. AND TECH. 3 RD IT. QUEUE ( data structure)
Chapter 12 Abstract Data Type. Understand the concept of an abstract data type (ADT). Understand the concept of a linear list as well as its operations.
Lecture 2 Basic Data Structures and Recursion Review.
Graphs Upon completion you will be able to:
Week 14 - Monday.  What did we talk about last time?  Heaps  Priority queues  Heapsort.
CSCI 383 Object-Oriented Programming & Design Lecture 25 Martin van Bommel.
Computer Engineering Rabie A. Ramadan Lecture 6.
Data Structures David Kauchak cs302 Spring Data Structures What is a data structure? Way of storing data that facilitates particular operations.
Lecture 2 What is a computational problem? What is an instance of a problem? What is an algorithm? How to guarantee that an algorithm is correct? What.
Exam 2 Review CS 3358 Data Structures. 90 Total Points – 50 Points Writing Programs – 25 Points Tracing Algorithms, determining results, and drawing pictures.
Big-Picture & Chapter 5 Why are things so complicated? & Linked Structures.
List Structures What is a list? A homogeneous collection of elements with a linear relationship between the elements linear relationship - each element.
Set Collection A Bag is a general collection class that implements the Collection interface. A Set is a collection that resembles a Bag with the provision.
Data Structures Michael J. Watts
Data Structure Interview Question and Answers
Chapter 15 Lists Objectives
Stacks and Queues.
Queues Queues Queues.
Lecture 3.2: Induction and Strong Induction (contd.)
Introduction to Data Structure
i206: Lecture 10: Lists, Stacks, Queues
Stacks, Queues, and Deques
Chapter 2: Getting Started
Lesson Objectives Aims
ITEC 2620M Introduction to Data Structures
Mutable Data (define mylist (list 1 2 3)) (bind ((new (list 4)))
Chapter 2: Getting Started
Presentation transcript:

Required Background for ECOE 556

What do I need to catch up with? Basic data structures (Chapter 10) –Stack –Queue –Linked list –Array –Records (e.g. (integer,real number) pairs) Basic mathematical proof methods –“If and only if” proofs –Mathematical induction Strong induction Know the costs of operations on these data structures –Insert –Delete –Look-up

What do I need to catch up with? Simple algorithms for simple problems –Find the minimum or maximum element in a data structure –Reverse the elements in an array –Determine the top three elements in an array –Merge two sorted arrays into a third sorted array Merge two sorted files containing integers into a third sorted file. –Find duplicates/unique elements in an array

Exercise for this week Write a program that reads in two files of sorted integers, one per line, and writes out a sorted, merged file. Write a stack program that reads in a command file and processes it –Push 3 –Push 4 –Pop –Write state f1.out Write a queue program similar to the above –Enqueue 3 –Enqueue 4 –Dequeue

Advice Read ahead –Before you come to lecture Ask yourself and me the stupidest basic questions –Can’t build on fuzzy understanding Not everything will/can be covered in lecture –This is a graduate class –I am only ONE of your resources –Bad way of thinking: “If the professor did not say it explicitly in class, I don’t need to learn it.”