Planning & System installation

Slides:



Advertisements
Similar presentations
Chapter 12 Binary Search Trees
Advertisements

Computer Science C++ High School Level By Guillermo Moreno.
Main Index Contents 11 Main Index Contents Week 6 – Binary Trees.
Advanced Data Structures
Binary Trees 2 Prof. Sin-Min Lee Department of Computer Science.
Kymberly Fergusson CSE1303 Part A Data Structures and Algorithms Summer Semester 2003 Lecture A12 – Binary Trees.
Tree Traversal. Traversal Algorithms preorder inorder postorder.
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (4) Data Structures 11/18/2008 Yang Song.
CS 206 Introduction to Computer Science II 09 / 22 / 2008 Instructor: Michael Eckmann.
Kymberly Fergusson CSE1303 Part A Data Structures and Algorithms Summer Semester 2003 Lecture A12 – Binary Trees.
Advanced Tree Data Structures Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Tree Implementations Chapter 24 Copyright ©2012 by Pearson Education, Inc. All rights reserved.
Tree Traversal. Traversal Algorithms preorder inorder postorder.
Chapter 18 - basic definitions - binary trees - tree traversals Intro. to Trees 1CSCI 3333 Data Structures.
CS 206 Introduction to Computer Science II 09 / 30 / 2009 Instructor: Michael Eckmann.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 122 – Data Structures Data Structures Trees.
Trees CS /02/05 L7: Trees Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
Data Structures Arrays both single and multiple dimensions Stacks Queues Trees Linked Lists.
Chapter 12 Data Structure Associate Prof. Yuh-Shyan Chen Dept. of Computer Science and Information Engineering National Chung-Cheng University.
Chapter 19: Binary Trees. Objectives In this chapter, you will: – Learn about binary trees – Explore various binary tree traversal algorithms – Organize.
Emma Price 1.  To be able to:  Explain what a binary tree is.  To traverse a binary tree using the three different methods. 2.
CISC220 Fall 2009 James Atlas Lecture 13: Trees. Skip Lists.
Binary Trees 2 Overview Trees. Terminology. Traversal of Binary Trees. Expression Trees. Binary Search Trees.
Tree (new ADT) Terminology:  A tree is a collection of elements (nodes)  Each node may have 0 or more successors (called children)  How many does a.
Tree Data Structures.
Computer Science: A Structured Programming Approach Using C Trees Trees are used extensively in computer science to represent algebraic formulas;
Lecture – Searching a Tree Neil Ghani University of Strathclyde.
Computer Science 112 Fundamentals of Programming II Introduction to Trees.
Binary Trees In computer science, a binary tree is a tree data structure in which each node has at most two children, which are referred to as the left.
Min Chen School of Computer Science and Engineering Seoul National University Data Structure: Chapter 6.
Data Structures: A Pseudocode Approach with C, Second Edition 1 Chapter 7 Objectives Create and implement binary search trees Understand the operation.
Trees Ellen Walker CPSC 201 Data Structures Hiram College.
Binary Tree Implementation. Binary Search Trees (BST) Nodes in Left subtree has smaller values Nodes in right subtree has bigger values.
Foundation of Computing Systems Lecture 4 Trees: Part I.
Lecture 7: Searching a Tree Neil Ghani University of Strathclyde.
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Planning & System installation
Data Structure By Amee Trivedi.
Planning & System installation
Chapter 12 – Data Structures
Introduction to Computers Computer Generations
Trees Chapter 15.
Binary Tree ADT: Properties
Lecture 1 (UNIT -4) TREE SUNIL KUMAR CIT-UPES.
Fundamentals of Programming II Introduction to Trees
Planning & System installation
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Recursive Objects (Part 4)
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Data Structures Binary Trees 1.
Planning & System installation
Trees Another Abstract Data Type (ADT)
Tree.
Section 8.1 Trees.
Copyright ©2012 by Pearson Education, Inc. All rights reserved
Chapter 7. Trees & Binary Trees
Trees Another Abstract Data Type (ADT)
Abstract Data Structures
Binary Trees Based on slides by Alyssa Harding & Marty Stepp
Trees.
Slides by Steve Armstrong LeTourneau University Longview, TX
Trees Another Abstract Data Type (ADT)
Principles of Computing – UFCFA3-30-1
Design and Analysis of Algorithms
CS210- Lecture 9 June 20, 2005 Announcements
Trees.
Chapter 20: Binary Trees.
Binary Tree Implementation
Non-Linear data structures
Binary Tree Implementation And Applications
Presentation transcript:

Planning & System installation IB Computer Science

HL Topics 1-7, d1-4 1: System design 2: Computer Organisation 3: Networks 4: Computational thinking 5: Abstract data structures 6: Resource management 7: Control D: OOP

HL only 5 Overview 1: System design 2: Computer Organisation Thinking recursively 5.1.1 Identify a situation that requires the use of recursive thinking 5.1.2 Identify recursive thinking in a specified problem solution 5.1.3 Trace a recursive algorithm to express a solution to a problem Abstract data structures 5.1.4 Describe the characteristics of a two-dimensional array 5.1.5 Construct algorithms using two-dimensional arrays 5.1.6 Describe the characteristics and applications of a stack 5.1.7 Construct algorithms using the access methods of a stack 5.1.8 Describe the characteristics and applications of a queue 5.1.9 Construct algorithms using the access methods of a queue 5.1.10 Explain the use of arrays as static stacks and queues Linked lists 5.1.11 Describe the features and characteristics of a dynamic data structure 5.1.12 Describe how linked lists operate logically 5.1.13 Sketch linked lists (single, double and circular) Trees 5.1.14 Describe how trees operate logically (both binary and non-binary) 5.1.15 Define the terms: parent, left-child, right-child, subtree, root and leaf 5.1.16 State the result of inorder, postorder and preorder tree traversal 5.1.17 Sketch binary trees Applications 5.1.18 Define the term dynamic data structure 5.1.19 Compare the use of static and dynamic data structures 5.1.20 Suggest a suitable structure for a given situation 3: Networks 4: Computational thinking 5: Abstract data structures 6: Resource management 7: Control D: OOP

Topic 5.1.9 Construct algorithms using the access methods of a queue

Abstract Data Structures (ADTs) 2D array Stack Queue Linked List (Binary) Tree Recursion

3 Queue Methods

Example 1: Move from array to queue Write an algorithm that will move all the elements from a linear integer array LINE to a queue called Q. int COUNTER = 0 loop COUNTER from 0 to LINE.length Q.enqueue(LINE[COUNTER]) end loop

Example 2: Print values from a queue Write an algorithm that will print all the String values kept in a queue called Q. loop while not Q.isEmpty() output( end loop Q.dequeue() )