ITEC2620 Introduction to Data Structures

Size: px
Start display at page:

Download "ITEC2620 Introduction to Data Structures"

Transcription

1 ITEC2620 Introduction to Data Structures Lecture 8b Search Trees Traversals Typical covered as graph traversals in data structures courses I ve never seen a graph traversal in practice! AI background Tree traversals Search trees Direct vs. Indirect Problems I Direct problems Can always make a step towards the solution Sorting Find next smallest value Direct vs. Indirect Problems II Indirect problems A step towards the final solution may not always be possible Mazes 1

2 Water Jug Problem We have two jugs 4L 3L How can we get exactly 2L? Basic AI Search Techniques Turn solutions into a decision tree Tree nodes are states Links are decisions (among states) Turn logic into brute force Computers have no intelligence, only raw computational power Represent knowledge in the tree, and exploit brute force to produce intelligence Tree-Based Search Depth-first Pick a path and follow it to the end Lots of solutions easy to find Breadth-first Follow all paths equally Not too many paths Best-first Add more insight to improve brute force Decision Trees I These are conceptual Decisions trees are not implemented using a tree-based data structure Like a complete binary tree stored in an array We visualize a tree from a linear data structure 2

3 Decision Trees II Tree-based search is really state generation and analysis Search depends on knowing how to generate all possible moves Analysis means knowing how to detect a goal state Decision Trees III Water Jug Problem All possible moves Fill a jug Empty a jug Transfer water from one job to the other Goal 2L of water in either jug Decision Trees IV We visualize the generation of the states in a tree structure initial state All possible moves state 1 state 2 state 3 Decision Trees V State Creation place initial state in a data structure while (goal not found && data structure not empty) { remove state (according to search strategy) expand generate new states from current state test states (for goal) add (unique) new states to data structure } 3

4 Depth-first Search (DFS) Like an in-order traversal of a binary tree Data structure is a stack Leaf nodes in decision tree are visited left to right If there are leaf nodes! Breadth-first Search (BFS) Like a level-order traversal of a binary tree Data structure is a queue Nodes are visited top to bottom, left to right Like how nodes are added to a complete binary tree Best-First Search (A*) Data structure is a heap Requires a heuristic to differentiate which nodes are better (e.g. closer to the final solution) than others Comparison of Tree Searches BFS finds minimum depth solution BFS finds minimum depth solution Good for low branching, few solutions DFS may find solutions faster Good for high branching, many solutions A* finds solutions faster Always better to use problem knowledge over brute force when available 4

5 DFS Example Water Jug I DFS Example Water Jug II DFS Example Water Jug III DFS Example Water Jug IV 5

6 DFS Example Water Jug V DFS Example Water Jug VI DFS Example Water Jug VII DFS Example Water Jug VIII

7 DFS Example Water Jug IX DFS Example Water Jug X DFS Example Water Jug XI DFS Example Water Jug XII

8 DFS Example Water Jug XIII DFS Example Water Jug XIV BFS Example Water Jug I BFS Example Water Jug II 8

9 BFS Example Water Jug III BFS Example Water Jug IV BFS Example Water Jug V BFS Example Water Jug VI

10 BFS Example Water Jug VII BFS Example Water Jug VIII BFS Example Water Jug IX BFS Example Water Jug X

11 BFS Example Water Jug XI BFS Example Water Jug XII BFS Example Water Jug XIII BFS Example Water Jug XIV

12 BFS Example Water Jug XV BFS Example Water Jug XVI , , Summary of State Space Search I Define a state space that contains all possible (and perhaps some impossible) configurations of the relevant objects Individual boards, board matrix Specify the initial state(s) Specify the goal state(s) Checkmate Summary of State Space Search II Specify the production rules that Specify the production rules that define general state transitions Valid moves, standard openings, famous end-games 12

13 Summary of State Space Search III Select a (systematic) control strategy (need global and local motion) Cannot fill one jug repeatedly (no local motion) Cannot fill, then empty one jug repeatedly (no global motion) Summary of State Space Search IV Apply intelligence (pruning, selectivity) if possible Alpha-beta pruning (game trees) The rest is more AI (fuzzy hand-waving stuff) than basic search... Readings and Assignments Suggested Readings from Shaffer (third Suggested Readings from Shaffer (third edition) 7.3.1,

Binary Search Trees CMPSC 122

Binary Search Trees CMPSC 122 Binary Search Trees CMPSC 122 Note: This notes packet has significant overlap with the first set of trees notes I do in CMPSC 360, but goes into much greater depth on turning BSTs into pseudocode than

More information

Schneps, Leila; Colmez, Coralie. Math on Trial : How Numbers Get Used and Abused in the Courtroom. New York, NY, USA: Basic Books, 2013. p i.

Schneps, Leila; Colmez, Coralie. Math on Trial : How Numbers Get Used and Abused in the Courtroom. New York, NY, USA: Basic Books, 2013. p i. New York, NY, USA: Basic Books, 2013. p i. http://site.ebrary.com/lib/mcgill/doc?id=10665296&ppg=2 New York, NY, USA: Basic Books, 2013. p ii. http://site.ebrary.com/lib/mcgill/doc?id=10665296&ppg=3 New

More information

Krishna Institute of Engineering & Technology, Ghaziabad Department of Computer Application MCA-213 : DATA STRUCTURES USING C

Krishna Institute of Engineering & Technology, Ghaziabad Department of Computer Application MCA-213 : DATA STRUCTURES USING C Tutorial#1 Q 1:- Explain the terms data, elementary item, entity, primary key, domain, attribute and information? Also give examples in support of your answer? Q 2:- What is a Data Type? Differentiate

More information

International Journal of Software and Web Sciences (IJSWS) www.iasir.net

International Journal of Software and Web Sciences (IJSWS) www.iasir.net International Association of Scientific Innovation and Research (IASIR) (An Association Unifying the Sciences, Engineering, and Applied Research) ISSN (Print): 2279-0063 ISSN (Online): 2279-0071 International

More information

Data Structures. Chapter 8

Data Structures. Chapter 8 Chapter 8 Data Structures Computer has to process lots and lots of data. To systematically process those data efficiently, those data are organized as a whole, appropriate for the application, called a

More information

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team Lecture Summary In this lecture, we learned about the ADT Priority Queue. A

More information

Binary Search Trees. A Generic Tree. Binary Trees. Nodes in a binary search tree ( B-S-T) are of the form. P parent. Key. Satellite data L R

Binary Search Trees. A Generic Tree. Binary Trees. Nodes in a binary search tree ( B-S-T) are of the form. P parent. Key. Satellite data L R Binary Search Trees A Generic Tree Nodes in a binary search tree ( B-S-T) are of the form P parent Key A Satellite data L R B C D E F G H I J The B-S-T has a root node which is the only node whose parent

More information

Binary Heaps. CSE 373 Data Structures

Binary Heaps. CSE 373 Data Structures Binary Heaps CSE Data Structures Readings Chapter Section. Binary Heaps BST implementation of a Priority Queue Worst case (degenerate tree) FindMin, DeleteMin and Insert (k) are all O(n) Best case (completely

More information

vii TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK

vii TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK vii TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST OF TABLES LIST OF FIGURES LIST OF ABBREVIATIONS LIST OF SYMBOLS LIST OF APPENDICES

More information

Data Structure [Question Bank]

Data Structure [Question Bank] Unit I (Analysis of Algorithms) 1. What are algorithms and how they are useful? 2. Describe the factor on best algorithms depends on? 3. Differentiate: Correct & Incorrect Algorithms? 4. Write short note:

More information

2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8]

2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8] Code No: R05220502 Set No. 1 1. (a) Describe the performance analysis in detail. (b) Show that f 1 (n)+f 2 (n) = 0(max(g 1 (n), g 2 (n)) where f 1 (n) = 0(g 1 (n)) and f 2 (n) = 0(g 2 (n)). [8+8] 2. (a)

More information

1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++

1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++ Answer the following 1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++ 2) Which data structure is needed to convert infix notations to postfix notations? Stack 3) The

More information

PROJECT MANAGEMENT PROFESSIONAL CERTIFIED ASSOCIATE IN PROJECT MANAGEMENT (PMP & CAPM) EXAM PREPARATION WORKSHOP

PROJECT MANAGEMENT PROFESSIONAL CERTIFIED ASSOCIATE IN PROJECT MANAGEMENT (PMP & CAPM) EXAM PREPARATION WORKSHOP TSE015 PROJECT MANAGEMENT PROFESSIONAL CERTIFIED ASSOCIATE IN PROJECT MANAGEMENT (PMP & CAPM) EXAM PREPARATION WORKSHOP Course Outline I. Introduction and Course Objectives A. About PMI B. PMP and CAPM

More information

5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes.

5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes. 1. The advantage of.. is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists. [A] Lists [B] Linked Lists [A] Trees [A] Queues 2. The

More information

Previous Lectures. B-Trees. External storage. Two types of memory. B-trees. Main principles

Previous Lectures. B-Trees. External storage. Two types of memory. B-trees. Main principles B-Trees Algorithms and data structures for external memory as opposed to the main memory B-Trees Previous Lectures Height balanced binary search trees: AVL trees, red-black trees. Multiway search trees:

More information

San$Diego$Imperial$Counties$Region$of$Narcotics$Anonymous$ Western$Service$Learning$Days$$ XXX$Host$Committee!Guidelines$ $$

San$Diego$Imperial$Counties$Region$of$Narcotics$Anonymous$ Western$Service$Learning$Days$$ XXX$Host$Committee!Guidelines$ $$ SanDiegoImperialCountiesRegionofNarcoticsAnonymous WesternServiceLearningDays XXXHostCommitteeGuidelines I. Purpose ThepurposeoftheWesternServiceLearningDays(WSLD)XXXHostCommittee(HostCommittee)isto organize,coordinateandproducethewsldxxxeventwithinthe6weekperiodof3weekspriortotheendof

More information

inet Enterprise Features Fact Sheet

inet Enterprise Features Fact Sheet 2007 inet Enterprise Features Fact Sheet inetmon Sdn. Bhd. 1010 & 1011, Tingkat 10 Blok D, Dataran Usahawan Kelana,17, Jalan SS 7/26, Kelana Jaya, 47301 Petaling Jaya, Selangor Darul Ehsan Tel: 603-7880

More information

Class Notes CS 3137. 1 Creating and Using a Huffman Code. Ref: Weiss, page 433

Class Notes CS 3137. 1 Creating and Using a Huffman Code. Ref: Weiss, page 433 Class Notes CS 3137 1 Creating and Using a Huffman Code. Ref: Weiss, page 433 1. FIXED LENGTH CODES: Codes are used to transmit characters over data links. You are probably aware of the ASCII code, a fixed-length

More information

Sample Questions Csci 1112 A. Bellaachia

Sample Questions Csci 1112 A. Bellaachia Sample Questions Csci 1112 A. Bellaachia Important Series : o S( N) 1 2 N N i N(1 N) / 2 i 1 o Sum of squares: N 2 N( N 1)(2N 1) N i for large N i 1 6 o Sum of exponents: N k 1 k N i for large N and k

More information

DATA STRUCTURES USING C

DATA STRUCTURES USING C DATA STRUCTURES USING C QUESTION BANK UNIT I 1. Define data. 2. Define Entity. 3. Define information. 4. Define Array. 5. Define data structure. 6. Give any two applications of data structures. 7. Give

More information

Delivering Business Intelligence With Microsoft SQL Server 2005 or 2008 HDT922 Five Days

Delivering Business Intelligence With Microsoft SQL Server 2005 or 2008 HDT922 Five Days or 2008 Five Days Prerequisites Students should have experience with any relational database management system as well as experience with data warehouses and star schemas. It would be helpful if students

More information

A binary heap is a complete binary tree, where each node has a higher priority than its children. This is called heap-order property

A binary heap is a complete binary tree, where each node has a higher priority than its children. This is called heap-order property CmSc 250 Intro to Algorithms Chapter 6. Transform and Conquer Binary Heaps 1. Definition A binary heap is a complete binary tree, where each node has a higher priority than its children. This is called

More information

Learn AX: A Beginner s Guide to Microsoft Dynamics AX. Managing Users and Role Based Security in Microsoft Dynamics AX 2012. Dynamics101 ACADEMY

Learn AX: A Beginner s Guide to Microsoft Dynamics AX. Managing Users and Role Based Security in Microsoft Dynamics AX 2012. Dynamics101 ACADEMY Learn AX: A Beginner s Guide to Microsoft Dynamics AX Managing Users and Role Based Security in Microsoft Dynamics AX 2012 About.com is a Rand Group Knowledge Center intended to provide our clients, and

More information

Workflow Administration of Windchill 10.2

Workflow Administration of Windchill 10.2 Workflow Administration of Windchill 10.2 Overview Course Code Course Length TRN-4339-T 2 Days In this course, you will learn about Windchill workflow features and how to design, configure, and test workflow

More information

Heaps & Priority Queues in the C++ STL 2-3 Trees

Heaps & Priority Queues in the C++ STL 2-3 Trees Heaps & Priority Queues in the C++ STL 2-3 Trees CS 3 Data Structures and Algorithms Lecture Slides Friday, April 7, 2009 Glenn G. Chappell Department of Computer Science University of Alaska Fairbanks

More information

Questions 1 through 25 are worth 2 points each. Choose one best answer for each.

Questions 1 through 25 are worth 2 points each. Choose one best answer for each. Questions 1 through 25 are worth 2 points each. Choose one best answer for each. 1. For the singly linked list implementation of the queue, where are the enqueues and dequeues performed? c a. Enqueue in

More information

Binary Search Trees (BST)

Binary Search Trees (BST) Binary Search Trees (BST) 1. Hierarchical data structure with a single reference to node 2. Each node has at most two child nodes (a left and a right child) 3. Nodes are organized by the Binary Search

More information

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits Outline NP-completeness Examples of Easy vs. Hard problems Euler circuit vs. Hamiltonian circuit Shortest Path vs. Longest Path 2-pairs sum vs. general Subset Sum Reducing one problem to another Clique

More information

TABLE OF CONTENTS CHAPTER DESCRIPTION PAGE

TABLE OF CONTENTS CHAPTER DESCRIPTION PAGE vii TABLE OF CONTENTS CHAPTER DESCRIPTION PAGE TITLE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK LIST OF CONTENTS LIST OF FIGURES LIST OF TABLES LIST OF APPENDICES i ii iii iv v vi vii xii

More information

Ordered Lists and Binary Trees

Ordered Lists and Binary Trees Data Structures and Algorithms Ordered Lists and Binary Trees Chris Brooks Department of Computer Science University of San Francisco Department of Computer Science University of San Francisco p.1/62 6-0:

More information

Data Structures. Level 6 C30151. www.fetac.ie. Module Descriptor

Data Structures. Level 6 C30151. www.fetac.ie. Module Descriptor The Further Education and Training Awards Council (FETAC) was set up as a statutory body on 11 June 2001 by the Minister for Education and Science. Under the Qualifications (Education & Training) Act,

More information

Contents. 1 Introduction. 2 Feature List. 3 Feature Interaction Matrix. 4 Feature Interactions

Contents. 1 Introduction. 2 Feature List. 3 Feature Interaction Matrix. 4 Feature Interactions 1 Introduction 1.1 Purpose and Scope................................. 1 1 1.2 Organization..................................... 1 2 1.3 Requirements Notation............................... 1 2 1.4 Requirements

More information

Java Software Structures

Java Software Structures INTERNATIONAL EDITION Java Software Structures Designing and Using Data Structures FOURTH EDITION John Lewis Joseph Chase This page is intentionally left blank. Java Software Structures,International Edition

More information

Requisite Approval must be attached

Requisite Approval must be attached Requisite Approval must be attached CITRUS COMMUNITY COLLEGE DISTRICT DEPARTMENT Public Services COURSE NUMBER PUB 158 TITLE Municipal and Urban Tree Care COURSE PURPOSE (check all that apply) Basic Skills

More information

B-Trees. Algorithms and data structures for external memory as opposed to the main memory B-Trees. B -trees

B-Trees. Algorithms and data structures for external memory as opposed to the main memory B-Trees. B -trees B-Trees Algorithms and data structures for external memory as opposed to the main memory B-Trees Previous Lectures Height balanced binary search trees: AVL trees, red-black trees. Multiway search trees:

More information

1 of 7 31/10/2012 18:34

1 of 7 31/10/2012 18:34 Regulatory Story Go to market news section Company TIDM Headline Released Number Ironveld PLC IRON Holding(s) in Company 18:01 31-Oct-2012 0348Q18 RNS Number : 0348Q Ironveld PLC 31 October 2012 TR-1:

More information

INSURANCE IN. Historical Development, Present Status and Future. Challenges

INSURANCE IN. Historical Development, Present Status and Future. Challenges INSURANCE IN ETHIOPIA Historical Development, Present Status and Future Challenges Hailu Zeleke August 2007 TABLE OF CONTENTS PAGE ACKNOWLEDGEMENTS vi ACRONYMS vii INTRODUCTION viif CHARTER 1: RISK - MEANING

More information

Home Page. Data Structures. Title Page. Page 1 of 24. Go Back. Full Screen. Close. Quit

Home Page. Data Structures. Title Page. Page 1 of 24. Go Back. Full Screen. Close. Quit Data Structures Page 1 of 24 A.1. Arrays (Vectors) n-element vector start address + ielementsize 0 +1 +2 +3 +4... +n-1 start address continuous memory block static, if size is known at compile time dynamic,

More information

The Definitive Guide to Google AdWords

The Definitive Guide to Google AdWords The Definitive Guide to Google AdWords Create Versatile and Powerful Marketing and Advertising Campaigns a ii a Bart Weller Lori Calcott Apress* Contents y About the Author About the Technical Reviewer

More information

1. Who can use Agent Portal? 2. What is the definition of an active agent? 3. How to access Agent portal? 4. How to login?

1. Who can use Agent Portal? 2. What is the definition of an active agent? 3. How to access Agent portal? 4. How to login? 1. Who can use Agent Portal? Any active agent who is associated with Future Generali Life Insurance Company Limited can logon to Agent Portal 2. What is the definition of an active agent? An agent, whose

More information

PG DIPLOMA IN GLOBAL STRATEGIC MANAGEMENT LIST OF BOOKS*

PG DIPLOMA IN GLOBAL STRATEGIC MANAGEMENT LIST OF BOOKS* PG DIPLOMA IN GLOBAL STRATEGIC MANAGEMENT LIST OF BOOKS* Paper I: INTERNATIONAL BUSINESS ENVIRONMENT Global Business Environment (ICMR Publication Textbook) [Ref. No: GBE 11 2K4 23] [ISBN: 81-7881-693-8]

More information

Declaration to be submitted by directors in the Applicant Company 1

Declaration to be submitted by directors in the Applicant Company 1 Form SNBFI/D1 Name of the Applicant Company: Declaration to be submitted by directors in the Applicant Company 1 1. Personal Details 1.1 Full name: 1.2 National Identity Card number: 1.3 Passport number:

More information

Social Media Mining. Graph Essentials

Social Media Mining. Graph Essentials Graph Essentials Graph Basics Measures Graph and Essentials Metrics 2 2 Nodes and Edges A network is a graph nodes, actors, or vertices (plural of vertex) Connections, edges or ties Edge Node Measures

More information

CompSci-61B, Data Structures Final Exam

CompSci-61B, Data Structures Final Exam Your Name: CompSci-61B, Data Structures Final Exam Your 8-digit Student ID: Your CS61B Class Account Login: This is a final test for mastery of the material covered in our labs, lectures, and readings.

More information

Introduction to Windchill Projectlink 10.2

Introduction to Windchill Projectlink 10.2 Introduction to Windchill Projectlink 10.2 Overview Course Code Course Length TRN-4270 1 Day In this course, you will learn how to participate in and manage projects using Windchill ProjectLink 10.2. Emphasis

More information

How To Get A Financial Aid Award In Athena

How To Get A Financial Aid Award In Athena Athena Self-Service Walkthrough By the UGA Office of Student Financial Aid 220 Holmes/Hunter Academic Building Athens, GA 30602-6114 Phone: (706) 542-6147 Section 1 How to Find Out What is Needed by the

More information

Load Balancing. Load Balancing 1 / 24

Load Balancing. Load Balancing 1 / 24 Load Balancing Backtracking, branch & bound and alpha-beta pruning: how to assign work to idle processes without much communication? Additionally for alpha-beta pruning: implementing the young-brothers-wait

More information

SOFTWARE TESTING. A Craftsmcm's Approach THIRD EDITION. Paul C. Jorgensen. Auerbach Publications. Taylor &. Francis Croup. Boca Raton New York

SOFTWARE TESTING. A Craftsmcm's Approach THIRD EDITION. Paul C. Jorgensen. Auerbach Publications. Taylor &. Francis Croup. Boca Raton New York SOFTWARE TESTING A Craftsmcm's Approach THIRD EDITION Paul C. Jorgensen A Auerbach Publications Taylor &. Francis Croup Boca Raton New York Auerbach Publications is an imprint of the Taylor & Francis Group,

More information

PES Institute of Technology-BSC QUESTION BANK

PES Institute of Technology-BSC QUESTION BANK PES Institute of Technology-BSC Faculty: Mrs. R.Bharathi CS35: Data Structures Using C QUESTION BANK UNIT I -BASIC CONCEPTS 1. What is an ADT? Briefly explain the categories that classify the functions

More information

LIST OF FIGURES. Figure No. Caption Page No.

LIST OF FIGURES. Figure No. Caption Page No. LIST OF FIGURES Figure No. Caption Page No. Figure 1.1 A Cellular Network.. 2 Figure 1.2 A Mobile Ad hoc Network... 2 Figure 1.3 Classifications of Threats. 10 Figure 1.4 Classification of Different QoS

More information

AI: A Modern Approach, Chpts. 3-4 Russell and Norvig

AI: A Modern Approach, Chpts. 3-4 Russell and Norvig AI: A Modern Approach, Chpts. 3-4 Russell and Norvig Sequential Decision Making in Robotics CS 599 Geoffrey Hollinger and Gaurav Sukhatme (Some slide content from Stuart Russell and HweeTou Ng) Spring,

More information

ReCap, ReCap Pro Features, and ReCap 360 Web Services FAQ

ReCap, ReCap Pro Features, and ReCap 360 Web Services FAQ ReCap, ReCap Pro Features, and ReCap 360 Web Services FAQ Autodesk Reality Solutions Group R e Cap FAQ 1 I. What are the ReCap Products and Services available today? - ReCap is Autodesk desktop application

More information

Analysis of Algorithms I: Binary Search Trees

Analysis of Algorithms I: Binary Search Trees Analysis of Algorithms I: Binary Search Trees Xi Chen Columbia University Hash table: A data structure that maintains a subset of keys from a universe set U = {0, 1,..., p 1} and supports all three dictionary

More information

Data Structures and Algorithms(5)

Data Structures and Algorithms(5) Ming Zhang Data Structures and Algorithms Data Structures and Algorithms(5) Instructor: Ming Zhang Textbook Authors: Ming Zhang, Tengjiao Wang and Haiyan Zhao Higher Education Press, 2008.6 (the "Eleventh

More information

Document Management for Hypermedia Design

Document Management for Hypermedia Design Piet A. M. Kommers Alcindo F. Ferreira Alex W. Kwak Document Management for Hypermedia Design With 122 Figures and 5 Tables Springer Table of Contents Parti Hypermedia Enterprises 1 Hypermedia Production

More information

Data Structures and Algorithms

Data Structures and Algorithms Data Structures and Algorithms CS245-2016S-06 Binary Search Trees David Galles Department of Computer Science University of San Francisco 06-0: Ordered List ADT Operations: Insert an element in the list

More information

KTH Challenge 2013. Solutions. Further Information KTH Challenge 2013. April 21, 2013

KTH Challenge 2013. Solutions. Further Information KTH Challenge 2013. April 21, 2013 April 21, Jury Lukáš Poláček (, Spotify), head of jury Per Austrin () Oskar Werkelin Ahlin (Spotify) Ulf Lundström () Marc Vinyals () Erik Aas () Emma Enström () Andreas Lundblad () B Peragrams Only one

More information

1. The memory address of the first element of an array is called A. floor address B. foundation addressc. first address D.

1. The memory address of the first element of an array is called A. floor address B. foundation addressc. first address D. 1. The memory address of the first element of an array is called A. floor address B. foundation addressc. first address D. base address 2. The memory address of fifth element of an array can be calculated

More information

A STUDY OF THE IMPACT OF CONSTRUCTION ACCIDENTS ON THE PROJECT CONTINUITY

A STUDY OF THE IMPACT OF CONSTRUCTION ACCIDENTS ON THE PROJECT CONTINUITY A STUDY OF THE IMPACT OF CONSTRUCTION ACCIDENTS ON THE PROJECT CONTINUITY Final Project Report as one of requirement to obtain S1 degree of Universitas Atma Jaya Yogyakarta By: KARTIKA IRIANTHY ZEBUA NPM.

More information

CS91.543 MidTerm Exam 4/1/2004 Name: KEY. Page Max Score 1 18 2 11 3 30 4 15 5 45 6 20 Total 139

CS91.543 MidTerm Exam 4/1/2004 Name: KEY. Page Max Score 1 18 2 11 3 30 4 15 5 45 6 20 Total 139 CS91.543 MidTerm Exam 4/1/2004 Name: KEY Page Max Score 1 18 2 11 3 30 4 15 5 45 6 20 Total 139 % INTRODUCTION, AI HISTORY AND AGENTS 1. [4 pts. ea.] Briefly describe the following important AI programs.

More information

MAX = 5 Current = 0 'This will declare an array with 5 elements. Inserting a Value onto the Stack (Push) -----------------------------------------

MAX = 5 Current = 0 'This will declare an array with 5 elements. Inserting a Value onto the Stack (Push) ----------------------------------------- =============================================================================================================================== DATA STRUCTURE PSEUDO-CODE EXAMPLES (c) Mubashir N. Mir - www.mubashirnabi.com

More information

Binary Heap Algorithms

Binary Heap Algorithms CS Data Structures and Algorithms Lecture Slides Wednesday, April 5, 2009 Glenn G. Chappell Department of Computer Science University of Alaska Fairbanks CHAPPELLG@member.ams.org 2005 2009 Glenn G. Chappell

More information

NATIONAL UNIVERSITY OF SCIENCE AND TECHNOLOGY

NATIONAL UNIVERSITY OF SCIENCE AND TECHNOLOGY NATIONAL UNIVERSITY OF SCIENCE AND TECHNOLOGY FACULTY OF COMMERCE GENERAL MASTERS IN BUSINESS ADMINISTRATION MANAGERIAL ACCOUNTING GMB 562 FINAL EXAMINATION 11 DECEMBER 2003 TIME ALLOWED: 3 HOURS + 30

More information

FINAL JOINT PRETRIAL ORDER. This matter is before the Court on a Final Pretrial Conference pursuant to R. 4:25-1.

FINAL JOINT PRETRIAL ORDER. This matter is before the Court on a Final Pretrial Conference pursuant to R. 4:25-1. SUPERIOR COURT OF NEW JERSEY MIDDLESEX COUNTY:LAW DIVISION Docket No. Plaintiff(s), v. Defendant(s). FINAL JOINT PRETRIAL ORDER This matter is before the Court on a Final Pretrial Conference pursuant to

More information

TABLE OF CONTENTS CHAPTER TITLE PAGE

TABLE OF CONTENTS CHAPTER TITLE PAGE viii TABLE OF CONTENTS CHAPTER TITLE PAGE TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST OF TABLES LIST OF FIGURES LIST OF APPENDICES I II III IV VI VII VIII

More information

Data Security at the KOKU

Data Security at the KOKU I. After we proposed our project to the central registration office of the city of Hamburg, they accepted our request for transferring information from their birth records. Transfer of all contact details

More information

STATE UNIVERSITY OF NEW YORK COLLEGE OF TECHNOLOGY CANTON, NEW YORK COURSE OUTLINE JUST 201 CRITICAL ISSUES IN CRIMINAL JUSTICE

STATE UNIVERSITY OF NEW YORK COLLEGE OF TECHNOLOGY CANTON, NEW YORK COURSE OUTLINE JUST 201 CRITICAL ISSUES IN CRIMINAL JUSTICE STATE UNIVERSITY OF NEW YORK COLLEGE OF TECHNOLOGY CANTON, NEW YORK COURSE OUTLINE JUST 201 CRITICAL ISSUES IN CRIMINAL JUSTICE Prepared by: Dr. Brian K. Harte SCHOOL OF BUSINESS AND CRIMINAL JUSTICE Department

More information

Full and Complete Binary Trees

Full and Complete Binary Trees Full and Complete Binary Trees Binary Tree Theorems 1 Here are two important types of binary trees. Note that the definitions, while similar, are logically independent. Definition: a binary tree T is full

More information

Binary Heaps * * * * * * * / / \ / \ / \ / \ / \ * * * * * * * * * * * / / \ / \ / / \ / \ * * * * * * * * * *

Binary Heaps * * * * * * * / / \ / \ / \ / \ / \ * * * * * * * * * * * / / \ / \ / / \ / \ * * * * * * * * * * Binary Heaps A binary heap is another data structure. It implements a priority queue. Priority Queue has the following operations: isempty add (with priority) remove (highest priority) peek (at highest

More information

Business Information Systems and Technology

Business Information Systems and Technology Business Information Systems and Technology A primer Brian Lehaney, Phil Lovett and Mahmood Shah Routledge Taylor & Francis Group LONDON AND NEW YORK Contents List of case studies xii List of figures xiii

More information

This Version Not For Distribution EMR/EHR

This Version Not For Distribution EMR/EHR This Version Not For Distribution EMR/EHR Cheng B Saw, Ph.D. Chair, Asian-Oceanic Affairs of AAPM Director - Physics, Northeast Radiation Oncology Centers President, CBSaw Publishing, LLC Harrisburg, PA,

More information

Measuring the Performance of an Agent

Measuring the Performance of an Agent 25 Measuring the Performance of an Agent The rational agent that we are aiming at should be successful in the task it is performing To assess the success we need to have a performance measure What is rational

More information

ECE 250 Data Structures and Algorithms MIDTERM EXAMINATION 2008-10-23/5:15-6:45 REC-200, EVI-350, RCH-106, HH-139

ECE 250 Data Structures and Algorithms MIDTERM EXAMINATION 2008-10-23/5:15-6:45 REC-200, EVI-350, RCH-106, HH-139 ECE 250 Data Structures and Algorithms MIDTERM EXAMINATION 2008-10-23/5:15-6:45 REC-200, EVI-350, RCH-106, HH-139 Instructions: No aides. Turn off all electronic media and store them under your desk. If

More information

The Taxman Game. Robert K. Moniot September 5, 2003

The Taxman Game. Robert K. Moniot September 5, 2003 The Taxman Game Robert K. Moniot September 5, 2003 1 Introduction Want to know how to beat the taxman? Legally, that is? Read on, and we will explore this cute little mathematical game. The taxman game

More information

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, 2010. Connect Four

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, 2010. Connect Four March 9, 2010 is a tic-tac-toe like game in which two players drop discs into a 7x6 board. The first player to get four in a row (either vertically, horizontally, or diagonally) wins. The game was first

More information

Regulatory Story. RNS Number : 8343I. DCD Media PLC. 08 July 2013. TR-1: NOTIFICATION OF MAJOR INTEREST IN SHARES i

Regulatory Story. RNS Number : 8343I. DCD Media PLC. 08 July 2013. TR-1: NOTIFICATION OF MAJOR INTEREST IN SHARES i 1 of 7 25/11/2013 11:51 Regulatory Story Go to market news section Company TIDM Headline Released DCD Media PLC DCD Holding(s) in Company 15:19 08-Jul-2013 8343I15 RNS : 8343I DCD Media PLC 08 July 2013

More information

CONTENTS PREFACE 1 INTRODUCTION 1 2 DATA VISUALIZATION 19

CONTENTS PREFACE 1 INTRODUCTION 1 2 DATA VISUALIZATION 19 PREFACE xi 1 INTRODUCTION 1 1.1 Overview 1 1.2 Definition 1 1.3 Preparation 2 1.3.1 Overview 2 1.3.2 Accessing Tabular Data 3 1.3.3 Accessing Unstructured Data 3 1.3.4 Understanding the Variables and Observations

More information

PHILOSOPHY OF EDUCATION AND TEACHING COURSE OUTLINE

PHILOSOPHY OF EDUCATION AND TEACHING COURSE OUTLINE PHILOSOPHY OF EDUCATION AND TEACHING COURSE OUTLINE Course Description This course is designed for students aspiring to be educators as well as those interested in education as a field of study in and

More information

A Beginner s Guide to PowerPoint 2010

A Beginner s Guide to PowerPoint 2010 A Beginner s Guide to PowerPoint 2010 I. The Opening Screen You will see the default opening screen is actually composed of three parts: 1. The Slides/Outline tabs on the left which displays thumbnails

More information

A TOOL FOR DATA STRUCTURE VISUALIZATION AND USER-DEFINED ALGORITHM ANIMATION

A TOOL FOR DATA STRUCTURE VISUALIZATION AND USER-DEFINED ALGORITHM ANIMATION A TOOL FOR DATA STRUCTURE VISUALIZATION AND USER-DEFINED ALGORITHM ANIMATION Tao Chen 1, Tarek Sobh 2 Abstract -- In this paper, a software application that features the visualization of commonly used

More information

I. GENERAL PROVISIONS II. KEY DEFINITIONS

I. GENERAL PROVISIONS II. KEY DEFINITIONS APPROVED by Resolution No. 1 of 18 December 2003 of the Standards Board of the Public Establishment the Institute of Accounting of the Republic of Lithuania (Revised version of Order No. VAS-5 of 29 June

More information

ZTE Australia Help Guides MF91

ZTE Australia Help Guides MF91 MF91 Gaming & IP Services Configuration Guides Introduction The purpose of this document is to walk you through the setup of your MF91 for Gaming or any other usage that requires transparency of data traffic

More information

The Cross-Platform Implementation

The Cross-Platform Implementation The Cross-Platform Implementation Of Draughts Game Valery Kirkizh State University of Aerospace Instrumentation Saint-Petersburg, Russia Introduction Age-old Russian game Draughts; Cross-platform implementation,

More information

Converting a Number from Decimal to Binary

Converting a Number from Decimal to Binary Converting a Number from Decimal to Binary Convert nonnegative integer in decimal format (base 10) into equivalent binary number (base 2) Rightmost bit of x Remainder of x after division by two Recursive

More information

Exam study sheet for CS2711. List of topics

Exam study sheet for CS2711. List of topics Exam study sheet for CS2711 Here is the list of topics you need to know for the final exam. For each data structure listed below, make sure you can do the following: 1. Give an example of this data structure

More information

THE COMPLETE PROJECT MANAGEMENT METHODOLOGY AND TOOLKIT

THE COMPLETE PROJECT MANAGEMENT METHODOLOGY AND TOOLKIT THE COMPLETE PROJECT MANAGEMENT METHODOLOGY AND TOOLKIT GERARD M. HILL CRC Press Taylor & Francis Group Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Croup, an informa business

More information

Decision Trees from large Databases: SLIQ

Decision Trees from large Databases: SLIQ Decision Trees from large Databases: SLIQ C4.5 often iterates over the training set How often? If the training set does not fit into main memory, swapping makes C4.5 unpractical! SLIQ: Sort the values

More information

Tennessee Wesleyan College Math 131 C Syllabus Spring 2016

Tennessee Wesleyan College Math 131 C Syllabus Spring 2016 Tennessee Wesleyan College Math 131 C Syllabus Spring 2016 I. Course: College Algebra, M131 C Location: Durham 303 Days/Time: MWF 1100-1150 Credit hours: 3 II. III. IV. Instructor: Dr. David J. Ashe Office:

More information

Ant Colony Optimization and Constraint Programming

Ant Colony Optimization and Constraint Programming Ant Colony Optimization and Constraint Programming Christine Solnon Series Editor Narendra Jussien WILEY Table of Contents Foreword Acknowledgements xi xiii Chapter 1. Introduction 1 1.1. Overview of the

More information

Business Administration of Windchill PDMLink 10.0

Business Administration of Windchill PDMLink 10.0 Business Administration of Windchill PDMLink 10.0 Overview Course Code Course Length TRN-3160-T 3 Days After completing this course, you will be well prepared to set up and manage a basic Windchill PDMLink

More information

TREE BASIC TERMINOLOGIES

TREE BASIC TERMINOLOGIES TREE Trees are very flexible, versatile and powerful non-liner data structure that can be used to represent data items possessing hierarchical relationship between the grand father and his children and

More information

Supply Chain Management with SAP APO

Supply Chain Management with SAP APO Jörg Thomas Dickersbach Supply Chain Management with SAP APO Structures, Modelling Approaches and Implementation of SAP SCM 2008 3rd edition Springer Contents PART I - OVERVIEW 1 SCM Projects with SAP

More information

Algorithms and Data Structures

Algorithms and Data Structures Algorithms and Data Structures CMPSC 465 LECTURES 20-21 Priority Queues and Binary Heaps Adam Smith S. Raskhodnikova and A. Smith. Based on slides by C. Leiserson and E. Demaine. 1 Trees Rooted Tree: collection

More information

Windchill PDMLink 10.2. Curriculum Guide

Windchill PDMLink 10.2. Curriculum Guide Windchill PDMLink 10.2 Curriculum Guide Live Classroom Curriculum Guide Update to Windchill PDMLink 10.2 from Windchill PDMLink 9.0/9.1 for the End User Introduction to Windchill PDMLink 10.2 for Light

More information

Introduction to Robotics Analysis, Systems, Applications

Introduction to Robotics Analysis, Systems, Applications Introduction to Robotics Analysis, Systems, Applications Saeed B. Niku Mechanical Engineering Department California Polytechnic State University San Luis Obispo Technische Urw/carsMt Darmstadt FACHBEREfCH

More information

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition Beginning C# 5.0 Databases Second Edition Vidya Vrat Agarwal Contents J About the Author About the Technical Reviewer Acknowledgments Introduction xviii xix xx xxi Part I: Understanding Tools and Fundamentals

More information

Binary Trees and Huffman Encoding Binary Search Trees

Binary Trees and Huffman Encoding Binary Search Trees Binary Trees and Huffman Encoding Binary Search Trees Computer Science E119 Harvard Extension School Fall 2012 David G. Sullivan, Ph.D. Motivation: Maintaining a Sorted Collection of Data A data dictionary

More information

Abstract Data Type. EECS 281: Data Structures and Algorithms. The Foundation: Data Structures and Abstract Data Types

Abstract Data Type. EECS 281: Data Structures and Algorithms. The Foundation: Data Structures and Abstract Data Types EECS 281: Data Structures and Algorithms The Foundation: Data Structures and Abstract Data Types Computer science is the science of abstraction. Abstract Data Type Abstraction of a data structure on that

More information

From Last Time: Remove (Delete) Operation

From Last Time: Remove (Delete) Operation CSE 32 Lecture : More on Search Trees Today s Topics: Lazy Operations Run Time Analysis of Binary Search Tree Operations Balanced Search Trees AVL Trees and Rotations Covered in Chapter of the text From

More information