CSE 250: Data Structures Week 2 January 21 – 25, 2008.

Slides:



Advertisements
Similar presentations
Stacks, Queues, and Linked Lists
Advertisements

SEG4110 – Advanced Software Design and Reengineering TOPIC J C++ Standard Template Library.
Time Series Analysis – Homework Homework Rules: All homework must be completed by due date Homework may be done in groups – please put names of all group.
David Notkin Autumn 2009 CSE303 Lecture 13 This space for rent.
CS 206 Introduction to Computer Science II 03 / 04 / 2009 Instructor: Michael Eckmann.
COMP171 Data Structures and Algorithms Spring 2009.
Data Structures & Algorithms
Lecture 38 CSE 331 Dec 7, The last few days Today: Solutions to HW 9 (end of lecture) Wednesday: Graded HW 9 (?), Sample final, Blog post on the.
Lecture 37 CSE 331 Nov 4, Homework stuff (Last!) HW 10 at the end of the lecture Solutions to HW 9 on Monday Graded HW 9 on.
CSE 115 / 503 Introduction to Computer Science For Majors I Carl Alphonce 219 Bell Hall.
CSE 115 Week 5 February , Monday Announcements Exam 3 today Exam 3 today Lab 3 due this week Lab 3 due this week Exam 4 Monday 2/18 Exam.
CSCE156: Introduction to Computer Science II Instructor Stephen Scott Website
CSE 326: Data Structures Lecture #3 Analysis of Recursive Algorithms Alon Halevy Fall Quarter 2000.
CSE 305 Introduction to Programming Languages
CS 106 Introduction to Computer Science I 12 / 11 / 2006 Instructor: Michael Eckmann.
CSSE221: Software Dev. Honors Day 13 Announcements Announcements Contractions throughout the night… Contractions throughout the night… Late day assignments.
Lecture 38 CSE 331 Dec 3, A new grading proposal Towards your final score in the course MAX ( mid-term as 25%+ finals as 40%, finals as 65%) .
CS 280 Data Structures Professor John Peterson. Goals Understand “Programming in the small” Java programming Know what’s under the hood in complex libraries.
CS 280 Data Structures Professor John Peterson. Goals Understand “Programming in the small” Java programming Know what’s under the hood in complex libraries.
Administrivia- Introduction CSE 373 Data Structures.
COMS W1004 Introduction to Computer Science June 1, 2009.
CS211 Data Structures Sami Rollins Fall 2004.
Summary of lectures (1 to 11)
Announcements CSE 380 Fall September 2003 CSE 380 home page CSE 380 home page  CSE 380 and.
Basic C++ Sequential Container Features
CSE 250: Data Structures Week 3 January 28 – February 1, 2008.
CSE 116 Introduction to Computer Science For Majors II Carl Alphonce 219 Bell Hall.
CSE 250: Data Structures Week 1 January , 2008.
CSE 115 Week 2 January , Wednesday Announcements Pick up Syllabus if you need one Pick up Syllabus if you need one Recitation Change Form.
Chapter 4 Linked Structures – Stacks Modified. Chapter Scope Object references as links Linked vs. array-based structures Managing linked lists Linked.
CSE332: Data Abstractions Lecture 1: Introduction; Stacks/Queues Tyler Robison Summer 2010.
CSE373: Data Structures and Algorithms Lecture 1: Introduction; ADTs; Stacks/Queues Nicki Dell Spring 2014.
Information and Computer Sciences University of Hawaii, Manoa
Midterm Review CSE 2011 Winter October 2015.
Week 3 – Wednesday.  What did we talk about last time?  ADTs  List implementation with a dynamic array.
CS 46B: Introduction to Data Structures July 9 Class Meeting Department of Computer Science San Jose State University Summer 2015 Instructor: Ron Mak
BIT 142:Programming & Data Structures in C#. A2 due date  A2 is due this Friday, June 12 th, by 11:30am BIT 142: Intermediate Programming2.
1. Introduction Adaptive hypermedia & AHyCo Algorithms and Data Structures course materials in AHyCo Knowledge assessment with AHyCo Conclusion and further.
1 Week 9 A little more GUI, and threads. Objectives: Discuss the Swing set of classes. Incorporate animation into applets. Define the term thread. Explain.
1 Daily Announcements CS 202, Spring 2007 Aaron Bloomfield.
CompSci 100e Program Design and Analysis II March 15, 2011 Prof. Rodger CompSci 100e, Spring20111.
Slide 1 Linked Data Structures. Slide 2 Learning Objectives  Nodes and Linked Lists  Creating, searching  Linked List Applications  Stacks, queues.
CS-2852 Data Structures Week 5, Class 2 – Testing and Stacks Announcement: Lab Demos - 2/3 & 4 on Friday Testing  Definitions, Example  (tentative) Testing.
Standard Template Library The Standard Template Library was recently added to standard C++. –The STL contains generic template classes. –The STL permits.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Course Introduction.
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Lecture 6 Complex Sorting 1. Announcements Homework 3 due Monday No participation this week Test is on Thursday Part of Wednesday will be review I will.
Chapter 16 – Data Structures and Recursion. Data Structures u Built-in –Array –struct u User developed –linked list –stack –queue –tree Lesson 16.1.
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. 
Week 2 - Friday.  What did we talk about last time?  Computing Big Oh.
Data Structures and Algorithms in Java AlaaEddin 2012.
Week 4 - Friday.  What did we talk about last time?  Continued doubly linked list implementation  Linked lists with iterators.
General Computer Science for Engineers CISC 106 Lecture 06 James Atlas Computer and Information Sciences 06/24/2009.
Data Structures David Kauchak cs302 Spring Data Structures What is a data structure? Way of storing data that facilitates particular operations.
CISC220 Spring 2010 James Atlas Lecture 10: Queues.
November 7, 2011 Objective: Students will understand how to read a credit report and begin to understand how to analyze a credit report to make a credit.
AP Computer Science. January 5, 2016 PowerPoint – Begin Array’s R7.1 R7.2 R7.6 E7.1 All this homework due Wednesday 1/6. Submit through Aspen pages Read.
1 The Standard Template Library The STL is a collection of Container classes These are class templates for containers. A container is an object that stores.
List Structures What is a list? A homogeneous collection of elements with a linear relationship between the elements linear relationship - each element.
March 27 – Course introductions; Adts; Stacks and Queues
March 29 – Testing and Priority QUeues
Data Structures and Database Applications Stacks in C#
CSE 214 – Computer Science II Stacks
Lecture 8 CSE 331 Sep 16, 2016.
Lecture 8 CSE 331 Sep 15, 2017.
Lecture 10 CSE 331 Sep 21, 2012.
Lecture 8 CSE 331 Sep 15, 2011.
Lecture 5 CSE 331 Sep 9, 2011.
Announcements CSE 1111 Week 6.
Presentation transcript:

CSE 250: Data Structures Week 2 January 21 – 25, 2008

Monday - Announcements No classes meet Monday Recitations begin this week.

Wednesday - Announcements Pick up syllabus Hand in completed signature form Drop class if you don’t have prerequisites Homework 1 posted Friday 1/25 is the last day to drop/add Spring 2008 classes.

Wednesday – Game Plan Recursive Algorithm needed for HW Fun with vectors Fun with Pointers

Wednesday Vector is a “growable array” from the C++ libraries. Preferable to use over built-in native C++ arrays. Should use iterator to cycle through the elements of a vector.

Wednesday Important iterator methods: begin() end() ++ advances the iterator *nameOfIterator accesses the element that the iterator is currently pointing to

Wednesday Pointers Pointers underlie Java’s references, in C++ we are allowed to directly manipulate these structures. Using them is roughly the same as using references. We create a pointer to an object (which starts off pointing to “nothing” – but not initialized to null like Java.

Wednesday Assign the pointer to a new instance We can access the value by deferencing the pointer. Look for help from Binky!

Friday Announcements Pick up syllabus Sign and turn in last page Homework 1 posted – due 2/1 Today is the last day to drop/add

Friday – Game Plan Review linear structures

Friday Linked lists  Circular – last element has a link to the first  Doubly-linked – links in both directions  Sorted – change insertion strategy  Build upon array or use dynamic links Stacks  LIFO  Build on other structure (like list)  push, pop, and peek only available to user of stack