CS 445: Data Structures Final Examination: Study Guide

Similar documents
Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC First Semester CSE/IT DATA STRUCTURES USING C

Data Structures and Abstractions with Java

Introduction p. 1 Pseudocode p. 2 Algorithm Header p. 2 Purpose, Conditions, and Return p. 3 Statement Numbers p. 4 Variables p. 4 Algorithm Analysis

DATA ABSTRACTION AND PROBLEM SOLVING WITH JAVA

AP Computer Science 4325

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC)

Table of Contents. Chapter 1: Introduction to Data Structures... 1

CS2013 Course Syllabus Spring 2018 Lecture: Mon/Wed 2:00 P.M. 2:50 P.M. SH C259 Lab: Mon/Wed 2:50 P.M. 4:00 P.M. SH C259

WITH C+ + William Ford University of the Pacific. William Topp University of the Pacific. Prentice Hall, Englewood Cliffs, New Jersey 07632

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

DATA STRUCTURES THROUGH C++

DEPARTMENT OF COMPUTER APPLICATIONS B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER LESSON PLAN SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

CS2013 Course Syllabus Spring 2017 Lecture: Friday 8:00 A.M. 9:40 A.M. Lab: Friday 9:40 A.M. 12:00 Noon

CLASSIC DATA STRUCTURES IN JAVA

Data Structures in C++ Using the Standard Template Library

LESSON PLAN B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER

CS301 - Data Structures Glossary By

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 154) Pass Marks: 24

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

Discuss the following operations on One-Dimensional array with algorithms.

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid. Fall 2018

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY THIRD SEMESTER B.TECH DEGREE EXAMINATION, JULY 2017 CS205: DATA STRUCTURES (CS, IT)

COMP Data Structures

INSTITUTE OF AERONAUTICAL ENGINEERING

Sorting. Sorting in Arrays. SelectionSort. SelectionSort. Binary search works great, but how do we create a sorted array in the first place?

CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims. Lecture 25: Review and Open Problems

Hiroki Yasuga, Elisabeth Kolp, Andreas Lang. 25th September 2014, Scientific Programming

About this exam review

Tribhuvan University Institute of Science and Technology Computer Science and Information Technology (CSC. 154) Section A Attempt any Two questions:

AP Computer Science AB

CS302 Data Structures using C++

Computer Programming II C++ (830)

OBJECT ORIENTED DATA STRUCTURE & ALGORITHMS

Course Name: B.Tech. 3 th Sem. No of hours allotted to complete the syllabi: 44 Hours No of hours allotted per week: 3 Hours. Planned.

Write the code to create an enhanced for loop that will go through every member of an ArrayList <String> myarray and print it out to the console.

School of Computing and Information Sciences. Course Title: Data Structures Date: 3/30/2010 Course Number: COP 3530 Number of Credits: 3

Cpt S 223 Course Overview. Cpt S 223, Fall 2007 Copyright: Washington State University

Java 2. Course Outcome Summary. Western Technical College. Course Information. Course History. Course Competencies

CS 221 Review. Mason Vail

namibia UniVERSITY OF SCIEnCE AnD TECHnOLOGY

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Computer Programming II Python

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN. Sec. Name Office Office hour Mail id

Programming II (CS300)

Samples of Evidence to Satisfy the AP Computer Science AB Curricular Requirements

Sorting Pearson Education, Inc. All rights reserved.

QUESTION BANK. Prepared by,mrs.d.maladhy AP/IT,RGCET. Page 1

Lecture 19 Sorting Goodrich, Tamassia

182 review 1. Course Goals

Topics for CSCI 151 Final Exam Wednesday, May 10

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

Question Paper Code : 97044

CS 206 Introduction to Computer Science II

Programming II (CS300)

Overview of Data Structures, Algorithm Analysis

1) What is the primary purpose of template functions? 2) Suppose bag is a template class, what is the syntax for declaring a bag b of integers?

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

SAURASHTRA UNIVERSITY

Algorithms: Design & Practice

Reg. No. : Question Paper Code : 27157

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

DATA STRUCTURES AND PROBLEM SOLVING USING JAVA

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

CMSC132, Practice Questions

Algorithm Class. C C++ DS JAVA DATA STRUCTURES TRAINING INSTITUTE KPHB HYDERABAD. Mobile:

CSE373: Data Structures & Algorithms Lecture 28: Final review and class wrap-up. Nicki Dell Spring 2014

CSCE 321/3201 Analysis and Design of Algorithms. Prof. Amr Goneid. Fall 2016

DS ata Structures Aptitude

Sorting. Popular algorithms: Many algorithms for sorting in parallel also exist.

CompuScholar, Inc. Alignment to Nevada "Computer Science" Course Standards

Unit 6 Chapter 15 EXAMPLES OF COMPLEXITY CALCULATION

Draw a diagram of an empty circular queue and describe it to the reader.

Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

CS 171: Introduction to Computer Science II. Binary Search Trees

FACULTY OF SCIENCE ACADEMY OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING ADVANCED DATA STRUCTURES AND ALGORITHMS EXAM EXAMINATION JUNE 2014

CSC 273 Data Structures

Algorithms Interview Questions

Analysis of Algorithms

What s New in the Second Edition

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

Data Structures Question Bank Multiple Choice

CS61BL. Lecture 5: Graphs Sorting

Priority Queues Heaps Heapsort

«Computer Science» Requirements for applicants by Innopolis University

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

Lab 9: More Sorting Algorithms 12:00 PM, Mar 21, 2018

Data_Structures - Hackveda

Revision Statement while return growth rate asymptotic notation complexity Compare algorithms Linear search Binary search Preconditions: sorted,

17 February Given an algorithm, compute its running time in terms of O, Ω, and Θ (if any). Usually the big-oh running time is enough.

Data Structure. Recitation III

Learning Goals. CS221: Algorithms and Data Structures Lecture #3 Mind Your Priority Queues. Today s Outline. Back to Queues. Priority Queue ADT

Java Programming Training for Experienced Programmers (5 Days)

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: CS6402- Design & Analysis of Algorithm Year/Sem : II/IV UNIT-I INTRODUCTION

Announcements. Last modified: Thu Nov 29 16:15: CS61B: Lecture #40 1

Computer Science 302 Spring 2017 (Practice for) Final Examination, May 10, 2017

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- MARCH, 2012 DATA STRUCTURE (Common to CT and IF) [Time: 3 hours

Transcription:

CS 445: Data Structures Final Examination: Study Guide Java prerequisites Classes, objects, and references Access modifiers Arguments and parameters Garbage collection Self-test questions: Appendix C Designing classes Composition and inheritance Access modifiers static keyword Overriding methods Dynamic binding and method polymorphism Reference type vs. object type Interfaces Typecasting Generic interfaces, classes, and methods Generic type declarations, including bounded types, type wildcards, and bounded wildcards Assertions Self-test questions: Appendix D; Prelude; Java Interludes JI1, JI3 Prelude: 1, 2 1

Bag Note: Since this was our first data structure, we covered several topics in this section even though they weren t specific only to bags. ADTs, collections, data structures and their relation to interfaces and classes Client vs. implementer Considering corner cases Test methods Bag ADT and interface Bag array vs. linked implementations Resizing arrays Inner classes, static and non-static Self-test questions: Chapters 1 3 Chapter 1: 1, 5 Chapter 2: 1, 5, 6, 11 Chapter 3: 1, 5, 12, 14 Algorithm analysis Asymptotic analysis Big-O notation Growth rates Amortized analysis Sum of the first n integers Analysis of bag implementations Self-test questions: Chapter 4 Chapter 4: 1 6, 10 12, 17 2

Stack Stack interface Using stacks to match brackets Using stacks to evaluate postfix Using stacks to convert infix to postfix Array vs. linked implementations of stack (runtime, memory usage) Program stack / run-time stack Self-test questions: Chapters 5, 6 Chapter 5: 1, 3, 6 8 Chapter 6: 1, 3, 5, 8, 9 Recursion Breaking problems into subproblems Requirements for recursion to work Activation records Divide & conquer vs. general recursion Tail recursion Easy vs. hard recursive algorithms to make iterative Overheads of recursion Recursive backtracking General goals The specific structure we used (next, extend, isfullsoln, reject) Analyzing recursive methods with recursion trees Processing arrays recursively by specifying bounds of subarray Self-test questions: Chapters 7, 18 Chapter 7: 1, 2, 5, 8, 16 Chapter 18: 4, 6, 7 3

Sorting Simple sorts Selection sort Bubble sort Insertion sort Shell sort Divide & conquer for sorting Merge sort Quicksort (including effect of pivot, pivot selection techniques) Base cases Sorting in-place vs. memory overhead Stable sorting Runtime analysis of sort methods Self-test questions: Chapters 8, 9 List Chapter 8: 1 3, 11, 13 Chapter 9: 1 4, 9 List ADT and uses Array vs. linked implementations of List (runtime, memory usage) Circular linked list Doubly-linked list Average case analysis Self-test questions: Chapters 12 14 Chapter 12: 1, 2, 4, 5, 7, 8 Chapter 13: 1, 8, 9, 11 Chapter 14: 1, 2, 4, 15 4

Iterator Reasons for iterators Iterator<T>, which classes should implement it, and why Iterable<T> Self-test questions: Java Interlude 5, Chapter 15 Chapter 15: 1 3, 10 Tree and Binary Search Tree Motivations for trees Tree terminology Recursive definitions of tree, binary tree, and BST Developing tree operations recursively Full, complete, balanced trees Tree node classes Traversals: Depth-first and breadth-first Tree iterators, general strategy, reasons for the approach BST operations and how they work Analysis of BST operations Self-test questions: Chapters 23 25 Chapter 23: 2 4, 6 8 Chapter 24: 4, 6, 7, 9 Chapter 25: 1, 2, 3, 5, 6, 7, 15 5

Queue and Priority Queue Queue ADT Linked Queue implementation Two-part circular linked Queue implementation Logically-circular array Queue implementation Analysis of Queue implementations PQ ADT Array implementations of PQ Heap implementations of PQ Analysis of PQ implementations Self-test questions: Chapters 10, 11, 26 Chapter 10: 1, 3, 5 Chapter 11: 3 6, 10 Chapter 26: 1, 2, 5 6