Planning & System installation

Slides:



Advertisements
Similar presentations
Binary Trees CSC 220. Your Observations (so far data structures) Array –Unordered Add, delete, search –Ordered Linked List –??
Advertisements

Main Index Contents 11 Main Index Contents Week 6 – Binary Trees.
CS 171: Introduction to Computer Science II
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.
© 2006 Pearson Addison-Wesley. All rights reserved11 A-1 Chapter 11 Trees.
© 2006 Pearson Addison-Wesley. All rights reserved11 A-1 Chapter 11 Trees.
Tree Implementations Chapter 24 Copyright ©2012 by Pearson Education, Inc. All rights reserved.
Tree Traversal. Traversal Algorithms preorder inorder postorder.
Emma Price 1.  To be able to:  Explain what a binary tree is.  To traverse a binary tree using the three different methods. 2.
Binary Trees 2 Overview Trees. Terminology. Traversal of Binary Trees. Expression Trees. Binary Search Trees.
Tree Data Structures.
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.
TREES K. Birman’s and G. Bebis’s Slides. Tree Overview 2  Tree: recursive data structure (similar to list)  Each cell may have zero or more successors.
© 2006 Pearson Addison-Wesley. All rights reserved11 A-1 Chapter 11 Trees.
Tree Implementations Chapter 24 © 2015 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures and Abstractions with Java,
Tree Implementations Chapter Chapter Contents The Nodes in a Binary Tree An Interface for a Node An implementation of BinaryNode An Implementation.
Data Abstraction and Problem Solving with JAVA Walls and Mirrors Frank M. Carrano and Janet J. Prichard © 2001 Addison Wesley Data Abstraction and Problem.
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.
Data Structures Azhar Maqsood School of Electrical Engineering and Computer Sciences (SEECS-NUST) Binary Trees.
Lecture 7: Searching a Tree Neil Ghani University of Strathclyde.
Chapter 7 Trees_ Part2 TREES. Depth and Height 2  Let v be a node of a tree T. The depth of v is the number of ancestors of v, excluding v itself. 
IB Computer Science Content developed by Dartford Grammar School Computer Science Department Objects as a programming concept.
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Planning & System installation
System Design Basics IB Computer Science.
Planning & System installation
Data Structure By Amee Trivedi.
Planning & System installation
Trees Chapter 15.
CSCE 210 Data Structures and Algorithms
Lecture 1 (UNIT -4) TREE SUNIL KUMAR CIT-UPES.
Trees Chapter 11 (continued)
Fundamentals of Programming II Introduction to Trees
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Recursive Objects (Part 4)
Trees Chapter 11 (continued)
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Data Structures Binary Trees 1.
Trees CSE 2320 – Algorithms and Data Structures Vassilis Athitsos
System Design Basics IB Computer Science.
Planning & System installation
Planning & System Installation
Trees Another Abstract Data Type (ADT)
Chapter 11 Trees © 2011 Pearson Addison-Wesley. All rights reserved.
Tree.
Csc 2720 Instructor: Zhuojun Duan
Section 8.1 Trees.
Data Structures & Algorithm Design
Binary Tree and General Tree
CS223 Advanced Data Structures and Algorithms
Copyright ©2012 by Pearson Education, Inc. All rights reserved
Copyright ©2012 by Pearson Education, Inc. All rights reserved
Trees Another Abstract Data Type (ADT)
Abstract Data Structures
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
Copyright ©2012 by Pearson Education, Inc. All rights reserved
CS210- Lecture 9 June 20, 2005 Announcements
Trees.
Chapter 20: Binary Trees.
Chapter 11 Trees © 2011 Pearson Addison-Wesley. All rights reserved.
Binary Tree Implementation
Chapter 11 Trees © 2011 Pearson Addison-Wesley. All rights reserved.
Trees Lecture 10 CS2110 – Spring 2013.
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.4 Describe the characteristics of a two- dimensional array

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

Arrays in general (1D/linear) What could go wrong? num [ 0 ] always OK num [ 9 ] OK (given the above declaration) num [ 10 ] illegal (no such cell from this declaration) num [ -1 ] always NO! (illegal) num [ 3.5 ]

2D array (grids/tables) Content developed by Dartford Grammar School Computer Science Department

Example of creating, filling and printing a 2D array in Java using dedicated methods (level 8)