On my honor I affirm that I have neither given nor received inappropriate aid in the completion of this exercise.

Similar documents
On my honor I affirm that I have neither given nor received inappropriate aid in the completion of this exercise.

On my honor I affirm that I have neither given nor received inappropriate aid in the completion of this exercise.

On my honor I affirm that I have neither given nor received inappropriate aid in the completion of this exercise.

Prog Struct & Abstr EXAM 3 Spring 2015, Page 1 of 12

( ) + n. ( ) = n "1) + n. ( ) = T n 2. ( ) = 2T n 2. ( ) = T( n 2 ) +1

CLO Assessment CLO1 Q1(10) CLO2 Q2 (10) CLO3 Q4 (10) CLO4 Q3a (4)

Amber Weyland: [to cameraman] Just hold it there so we can see Mollie.

CS 111X - Fall Test 1

CS161 - Final Exam Computer Science Department, Stanford University August 16, 2008

( ) ( ) C. " 1 n. ( ) $ f n. ( ) B. " log( n! ) ( ) and that you already know ( ) ( ) " % g( n) ( ) " #&

CS210 (161) with Dr. Basit Qureshi Final Exam Weight 40%

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer)

CS 4349 Lecture October 18th, 2017

Problem Score Maximum MC 34 (25/17) = 50 Total 100

CS2 Algorithms and Data Structures Note 9

CSE 131 Introduction to Computer Science Fall 2016 Exam I. Print clearly the following information:

CS 112 Final May 8, 2008 (Lightly edited for 2012 Practice) Name: BU ID: Instructions

n 2 ( ) ( ) Ο f ( n) ( ) Ω B. n logn Ο

CS 3114 Data Structures and Algorithms READ THIS NOW!

( ) D. Θ ( ) ( ) Ο f ( n) ( ) Ω. C. T n C. Θ. B. n logn Ο

Prelim 2 Solution. CS 2110, April 26, 2016, 5:30 PM

(the bubble footer is automatically inserted in this space)

) $ f ( n) " %( g( n)

Major2 Examination Term: 162 Year: 2016/2017

CS 111X - Fall Test 1 - KEY KEY KEY KEY KEY KEY KEY

Faculty of Science FINAL EXAMINATION COMP-250 A Introduction to Computer Science School of Computer Science, McGill University

csci 210: Data Structures Graph Traversals

1 Jane s dress is... yours. A the same than B the same to C similar than D similar to

EECS 492 Midterm #1. Example Questions. Note: Not a complete exam!

Test 1 Last 4 Digits of Mav ID # Multiple Choice. Write your answer to the LEFT of each problem. 2 points each t 1

Prelim 2, CS :30 PM, 25 April Total Question Name Short Search/ Collections Trees Graphs

This is a set of practice questions for the final for CS16. The actual exam will consist of problems that are quite similar to those you have

Analysis of Algorithms

Spam. Time: five years from now Place: England

CSE 332 Spring 2014: Midterm Exam (closed book, closed notes, no calculators)

Do not turn this page until you have received the signal to start. In the meantime, please read the instructions below carefully.

CSE 247 Data Structures and Algorithms Fall Exam I

CISC 3130 Data Structures Spring 2018

Introduction to Algorithms November 17, 2011 Massachusetts Institute of Technology Fall 2011 Professors Erik Demaine and Srini Devadas Quiz 2

9. The expected time for insertion sort for n keys is in which set? (All n! input permutations are equally likely.)

Questions Total Points Score

CS 112 Final May 8, 2008 (Lightly edited for 2011 Practice) Name: BU ID: Instructions GOOD LUCK!

Prelim 2. CS 2110, 24 April 2018, 5:30 PM Total Question Name Short Heaps Tree Collections Sorting Graph

Final Examination Term: 162 Year: 2016/2017 (v2)

CS 110 Exam 2 Spring 2011

Representation Techniques for Logical Spaces

Exercise Max. Points Total 80

Syllabus for HPE 451 Directed Study 1-3 Credit Hours Spring 2014

Prelim 2. CS 2110, 24 April 2018, 7:30 PM Total Question Name Short Heaps Tree Collections Sorting Graph.

University of Illinois at Urbana-Champaign Department of Computer Science. Final Examination

CSE 373 NOVEMBER 20 TH TOPOLOGICAL SORT

Part 1: Written Questions (60 marks):

Multiple Choice. Write your answer to the LEFT of each problem. 3 points each

( ). Which of ( ) ( ) " #& ( ) " # g( n) ( ) " # f ( n) Test 1

6 Stephanie Well. It s six, because there s six towers.

Final Exam Review. CS231 Algorithms Handout # 40 Prof. Lyn Turbak December 13, 2001 Wellesley College

CSE 131 Introduction to Computer Science Fall Exam I

We don t have much time, so we don t teach them [students]; we acquaint them with things that they can learn. Charles E. Leiserson

Prelim 2 Solution. CS 2110, April 26, 2016, 7:30 PM

Final Examination CSE 100 UCSD (Practice)

Second Examination Solution

n 2 C. Θ n ( ) Ο f ( n) B. n 2 Ω( n logn)

CSE100 Practice Final Exam Section C Fall 2015: Dec 10 th, Problem Topic Points Possible Points Earned Grader

(the bubble footer is automatically inserted in this space)

University of New Mexico Department of Computer Science. Final Examination. CS 561 Data Structures and Algorithms Fall, 2011

CPSC 211, Sections : Data Structures and Implementations, Honors Final Exam May 4, 2001

& ( D. " mnp ' ( ) n 3. n 2. ( ) C. " n

Midterm Exam Solutions March 7, 2001 CS162 Operating Systems

Largest Online Community of VU Students

: Intro Programming for Scientists and Engineers Final Exam

Part 1 (80 points) Multiple Choice Questions (20 questions * 4 points per question = 80 points)

CPSC 536N: Randomized Algorithms Term 2. Lecture 5

FINAL EXAMINATION. COMP-250: Introduction to Computer Science - Fall 2010

( ) n 3. n 2 ( ) D. Ο

Introduction to Algorithms March 11, 2009 Massachusetts Institute of Technology Spring 2009 Professors Sivan Toledo and Alan Edelman Quiz 1

UNIVERSITY REGULATIONS

Midterm Exam March 7, 2001 CS162 Operating Systems

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

CS 310 Advanced Data Structures and Algorithms

CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

CSE 373 Spring 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

Solution READ THIS NOW! CS 3114 Data Structures and Algorithms

CSE 373 Winter 2009: Midterm #1 (closed book, closed notes, NO calculators allowed)

Prelim 2. CS 2110, 16 November 2017, 7:30 PM Total Question Name Short Heaps Tree Collections Sorting Graph

CSE 332 Spring 2013: Midterm Exam (closed book, closed notes, no calculators)

Sample Exam 1 Questions

University of Virginia Department of Computer Science. CS 4501: Information Retrieval Fall 2015

University of Illinois at Urbana-Champaign Department of Computer Science. Final Examination

Problem Pts Score Grader Problem Pts Score Grader

CSE548, AMS542: Analysis of Algorithms, Fall 2012 Date: October 16. In-Class Midterm. ( 11:35 AM 12:50 PM : 75 Minutes )

Computer Science Spring 2005 Final Examination, May 12, 2005

Prelim 2 Solution. CS 2110, 24 April 2018, 7:30 PM Total Question Name Short Heaps Tree Collections Sorting Graph.

2.3 Building the Perfect Square A Solidify Understanding Task

CS 350 Final Algorithms and Complexity. It is recommended that you read through the exam before you begin. Answer all questions in the space provided.

n 2 ( ) ( ) + n is in Θ n logn

CS 2500 Exam 1 Fall 2012

(Refer Slide Time: 02.06)

University of Toronto Department of Electrical and Computer Engineering. Midterm Examination. ECE 345 Algorithms and Data Structures Fall 2010

Solution printed. Do not start the test until instructed to do so! CS 2604 Data Structures Midterm Summer I Instructions:

Prelim 2. CS 2110, April 26, 2016, 5:30 PM Total Question True/False Complexity Heaps Trees Graphs Max Score Grader

Transcription:

CS 2413 Data Structures EXAM 3 Fall 2016, Page 1 of 10 Student Name: Student ID # OU Academic Integrity Pledge On my honor I affirm that I have neither given nor received inappropriate aid in the completion of this exercise. Signature: Date: Notes Regarding this Examination Open Book(s) You may consult any printed textbooks in your immediate possession during the course of this examination. Open Notes You may consult any printed notes in your immediate possession during the course of this examination. No Electronic Devices Permitted You may not use any electronic devices during the course of this examination, including but not limited to calculators, computers, and cellular phones. All electronic devices in the student s possession must be turned off and placed out of sight (for example, in the student s own pocket or backpack) for the duration of the examination. Violations Copying another s work, or possession of electronic computing or communication devices in the testing area, is cheating and grounds for penalties in accordance with school policies.

CS 2413 Data Structures EXAM 3 Fall 2016, Page 2 of 10 Part I. Data Structures Comparisons 1. (2 points) The minimum Big O runtime to find an arbitrary element in an arbitrary binary tree is roughly equal to the minimum Big O runtime to find an arbitrary element in which other data structure? 2. (2 points) The minimum Big O runtime to find an arbitrary element in an arbitrary binary search tree is roughly equal to the minimum Big O runtime to find an arbitrary element in which other data structure? 3. (2 points) The minimum Big O runtime to find an arbitrary element in an arbitrary AVL tree is roughly equal to the minimum Big O runtime to find an arbitrary element in which other data structure? 4. (2 points) The minimum Big O runtime to find an arbitrary element in an arbitrary Red-Black tree is roughly equal to the minimum Big O runtime to find an arbitrary element in which other data structure? 5. (2 points) The minimum Big O runtime to find an arbitrary element in an arbitrary undirected graph is roughly equal to the minimum Big O runtime to find an arbitrary element in which other data structure? 6. (2 points) The minimum Big O runtime to find the minimum element in an arbitrary minimum heap is roughly equal to the minimum Big O runtime to find the minimum element in which other data structure?

CS 2413 Data Structures EXAM 3 Fall 2016, Page 3 of 10 Part II. Graphs 7. (2 points) A vertex is another word for which of the following? A. A node B. An edge C. A link D. A path E. A value 8. (2 points) For sparse graphs, which of the following data structures is more space efficient? A. Adjacency queues B. Adjacency trees C. Adjacency matrices D. Adjacency lists E. None of the above 9. (2 points) What is the time complexity for efficiently changing the edge cost in an efficient representation of a complete directed graph with n nodes? A. Θ(n) B. Θ(log 2 n) C. Θ(1) D. Θ(n 2 ) E. Θ(n log 2 n) 10. (2 points) Uniform cost search can be seen as a generalization of which of the following? A. Depth-first search B. Breadth-first search C. Binary search D. Linear search E. None of the above Exam continues with short answer questions.

CS 2413 Data Structures EXAM 3 Fall 2016, Page 4 of 10 Short Answer Question 1: Tree Traversal (5 points) 44 91 22 18 74 90 70 93 Show the postorder traversal of the above binary tree.

CS 2413 Data Structures EXAM 3 Fall 2016, Page 5 of 10 Short Answer Question 2: Binary Search Trees (10 points) 44 21 93 16 22 81 96 7 20 40 60 100 A. Explain how many key comparisons are necessary to perform a search for the key 83 in the tree above. B. Explain how many key comparisons are necessary to perform a search for the key 20 in the tree above.

CS 2413 Data Structures EXAM 3 Fall 2016, Page 6 of 10 Short Answer Question 3: Self-Modifying Search Trees (10 points) 36 8 48 3 26 25 Explain the result of performing a zigzag operation on the node with key 36 in the tree above.

CS 2413 Data Structures EXAM 3 Fall 2016, Page 7 of 10 Short Answer Question 4: AVL Trees (15 points) 45 1 65 12 52 91 50 53 Explain the result of adding the node with key 48 to the above tree.

CS 2413 Data Structures EXAM 3 Fall 2016, Page 8 of 10 Short Answer Question 5: Graphs (20 points) Explain the order of node traversal for the following graph for the specified search type. Assume that nodes with lower node numbers will be traversed before nodes with higher node numbers when multiple nodes are available as successors of a given node. Start at node 1. 2 9 3 1 12 11 4 7 5 6 8 10 13 A. Depth-First Search B. Breadth-First Search

CS 2413 Data Structures EXAM 3 Fall 2016, Page 9 of 10 Short Answer Question 6: Ethics (20 points) Angie walked in looking for Mic but he wasn t there. Not at his desk. Not at the printer. Not over by the water cooler. Hey, Nan, did Mic already leave for the day? What? Nancy had to pull her mind out of her work to get the question to register. Oh, yeah, he left about twenty minutes ago. Why? Are you sure? Angie probed. He s still logged in on his machine. Yeah, Ang, I m sure. Nancy assured her. He always leaves himself logged in. He s even turned off the auto-lock because he says it s a waste of time. Julio gets on him for it now and then but he still does it. Rats! This wasn t the news Angie wanted. He was supposed to check his changes in to the repository before he left. How am I supposed to verify his code if it isn t in the repo? Do it tomorrow, like always? No, not like always. I ve got plans for tomorrow. This time I was supposed to work late tonight, so I could take tomorrow off. Julio approved it. Now that s all messed up. Angie sighed. Oh, Ang, that s too bad. Mic is so irresponsible. Maybe you could try to get a hold of him. Calls were made. Texts sent. Emails. PMs. Nothing. So, Angie moved on to trying to get a hold of Julio. Same story. Finally, it was time for Nancy to leave too. Listen, Nan said, I gotta go but good luck. And, well, don t forget, Mic never logs out. Mic never logs out. Angie echoed the words in her mind. Maybe Nan was right. It shouldn t be hard to find the changed code on Mic s machine and check it in herself. Then she could get her job done and go on her way. That, or miss out on tomorrow s plans? No, this was Mic s fault and she wasn t going to let him mess this up for her. Angie sat down at Mic s machine and started looking. A. Find at least one computer crimes law that is relevant to this scenario. List the name of the law and explain why you think it is relevant. B. Say whether you think Angie abided by (that is, followed) the law you listed and explain how you came to that conclusion.

CS 2413 Data Structures EXAM 3 Fall 2016, Page 10 of 10 C. Give one likely motivation for Angie s action and explain how you concluded that was a likely motivation. D. List one ethical-decision-making problem (interfering factor) that is likely to have contributed to at least one of Angie s decisions and explain how you concluded that was a likely problem. E. List one ethical-decision-making strategy that Angie could employ to improve his ethical decision making and explain how he might employ that strategy in this situation.