Hire Experts For Answers
Order NowRelated Study Services
- Homework Answers
- Coursework writing help
- Term paper writing help
- Writing Help
- Paper Writing Help
- Research paper help
- Thesis Help
- Dissertation Help
- Case study writing service
- Capstone Project Writing Help
- Lab report Writing
- Take my online class
- Take my online exam
- Do my test for me
- Do my homework
- Do my math homework
- Online Assignment Help
- Do my assignment
- Essay Writing Help
- Write my college essay
- Write my essay for me
DESCRIPTION
Posted
Modified
Viewed
19
Complete the attached exam for the class Design and Analysis of Algorithms. All questions must be completed. Based on test instructions, don't have to use LATEX to edit, can edit pdf however you choose.
This order does not have tags, yet.
Attachments
Final Exam Name:
CSCE411 Design and Analysis of Algorithms Apr. 30th, 2021
Texas A&M University Prof. Juan Garay
Instructions (please read carefully before start!)
• This take-home exam contains 11 pages (including this cover page) and 10 questions.
Total of points is 100.
• You will have till May 5th 4:30 p.m., 2021 to finish the exam. You must work on
your own, and no collaboration or help from any resources other than those made
available in class (lecture notes, texts, homework problems, etc.) is permitted.
• Submit your solutions in PDF on Google Classroom before the deadline, either
scanned or typeset in LATEX. Name the PDF file ‘<your last name> FINAL.pdf’. If you
choose to hand-write and scan, print out this exam sheet and write your solutions on it.
Do your best to fit your answers into the space provided, and attach extra papers
only if necessary. If you typeset in LATEX, use the provided TeX file. No other formats
are accepted.
• For problems that require you to provide an algorithm, you must give a precise
description of the algorithm, together with the pesudocode, a proof of correctness
and an analysis of its running time.
Grade Table (for instructor use only)
Question Points Score
1 10
2 10
3 10
4 10
5 10
6 10
7 10
8 10
9 10
10 10
Total: 100
CSCE 411 Final Exam - Page 2 of 11 Spring 2021
1. (10 points) Is the function dlg ne! polynomially bounded? Is the function dlg lg ne!
polynomially bounded?
CSCE 411 Final Exam - Page 3 of 11 Spring 2021
2. (10 points) Suppose that you want to output 0 with probability 1/2 and 1 with
probability 1/2. At your disposal is a procedure Biased-Random, that outputs
either 0 or 1. It outputs 1 with some probability p and 0 with probability 1− p,
where 0 < p < 1, but you do not know what p is. Give an algorithm that uses
Biased-Random as a subroutine, and returns an unbiased answer, returning 0 with
probability 1/2 and 1 with probability 1/2. What is the expected running time of
your algorithm as a function of p?
CSCE 411 Final Exam - Page 4 of 11 Spring 2021
3. (10 points) Consider the problem of determining whether an arbitrary sequence
{x1, x2, . . . , xn} of n numbers contains repeated occurrences of some number. Show
that this can be done in Θ(n lg n) time.
CSCE 411 Final Exam - Page 5 of 11 Spring 2021
4. (10 points) Let H1 and H2 be two hash functions. Define H(x)
def
= H1(x) ‖ H2(x).
Prove that if at least one of H1 and H2 is collision resistant, then H is collision
resistant.
CSCE 411 Final Exam - Page 6 of 11 Spring 2021
5. (10 points) We can sort a given set of n numbers by first building a binary search
tree containing these numbers (using Tree-Insert repeatedly to insert the numbers
one by one) and then printing the numbers by an inorder tree walk. What are the
worst-case and best-case running times for this sorting algorithm?
CSCE 411 Final Exam - Page 7 of 11 Spring 2021
6. (10 points) Let T be an MST of a graph G, and let L be the sorted list of the edge
weights of T. Show that for any other MST T′ of G, the list L is also the sorted list of
the edge weights of T′.
CSCE 411 Final Exam - Page 8 of 11 Spring 2021
7. (10 points) A bipartite graph is k-regular if |L| = |R| and every vertex (regardless of
which side it is on) has exactly k neighbors.
Prove or refute: Every k-regular bipartite graph has a perfect matching.
CSCE 411 Final Exam - Page 9 of 11 Spring 2021
8. (10 points) Suppose you are given a set L of n line segments in the plane, where each
segment has one endpoint on the vertical line x = 0 and one endpoint on the vertical
line x = 1, and all 2n endpoints are distinct. Describe and analyze an algorithm to
compute the largest subset of L in which no pair of segments intersects.
CSCE 411 Final Exam - Page 10 of 11 Spring 2021
9. (10 points) Define the optimization problem LONGEST-PATH-LENGTH as the relation
that associates each instance of an undirected graph and two vertices with the number
of edges in a longest simple path between the two vertices. Define the decision problem
LONGEST-PATH = {〈G, u, v, k〉 : G = (V, E) is an undirected graph, u, v ∈ V, k ≥ 0
is an integer, and there exists a simple path from u to v in G consisting of at least
k edges}. Show that the optimization problem LONGEST-PATH-LENGTH can be
solved in polynomial time if and only if LONGEST-PATH ∈ P .
CSCE 411 Final Exam - Page 11 of 11 Spring 2021
10. (10 points) Show that if an algorithm makes at most a constant number of calls to
polynomial-time subroutines and performs an additional amount of work that also
takes polynomial time, then it runs in polynomial time. Also show that a polynomial
number of calls to polynomial-time subroutines may result in an exponential-time
algorithm.
Explanations and Answers
0
No answers posted
Post your Answer - free or at a fee
NB: Post a homework question for free and get answers - free or paid homework help.
Get answers to: Design And Analysis Of Algorithms Exam or similar questions only at Tutlance.
Related Questions
- Java Final - Need Help On Project
- Project 5: Perl (Cit 150 -Internet Technologies)
- Answering Questions Based On A Dataset And Coding In R
- C++ Student Test Score Program
- 4 Part Excel Project List Of Step By Step Instructions To Follow In Excel Along With A Start Up Excel File To Go With It
- Coding In Java Using Simple Java Functions
- Computer Science A-Level Paper
- Fundamentals Computer Hardware
- Code For Python. The Code Must Work
- Project Assignment For Computer Science
- Python Image Manipulation Program
- Pandas Data Quality Report Csv Files
- Computer Science Exam In Language C
- Software Engineering Hw (Create Dfmea)
- Cs- Data Science ( Database For Machine Learning)
- Data Structure Labs - Trees, Binary Trees, Avl, And Heap
- Creating Logical And Physical Diagram Of Floor Plan
- Building A Network Topography On Cisco Router
- Penetration Testing Homework Help
- Penetration Testing Homework Help
- Java Exam Help For 4 Questions
- Input/Output Devices In Operating Systems
- Write Program Implementing Array To Store Lines Of Text
- Javascript 3 - Javascript And The Canvas
- Parallel Algorithms Using Messaging Interface In C
- Java Randomphrasegenerator From Grammar Files
- A Simple Simulator For The Cfs Scheduler In C
- C++ Simulator Of Simple Cfs Scheduler
- A Simple Simulator For The Cfs Scheduler
- Complete A Student Account Functionality Which Includes Create Account And Modify Account.
- Python Programming Assignment Using Oop
- Java Hash Types Problem For Data Structurers
- Cs Homework Assignment (Python)
- Black Jack Card Game Written In Java To Specific Requirements
- Intro To Comp Sci, Modular Arithmetic Topics.
- Wireshark Help Asap Please And Thank You!
- Using A Csv File That Holds Stock Prices To Make A Dictionary And Other Things
- Dynamic Programming, Data Structures, Sorting Algorithms
- Producer-Consumer Problem Using Jms
- Create Card Game Called Megawar Using C++
- Multi-Threaded Key-Value Store Using Rpc
- Advanced Storage Systems (Computer Science)- Need A Research Paper On This Topic
- To Create A Shoe Store That Manages Different Shoes Like Heels, Hi Top, Low Top, Boots Etc Using Python Classes & List
- C++ Pos System According To The Uml Diagram
- Implement A Routing Demon Under Linux For Ripv2 In Python 3
- Need Haskell Assignment Done Asap!
- Trie For Prefix, Algorithm Question
- Formal Languages And Automata Theory
- Send An Email, With The Current Weather Information From The Target Zip Code With The Weather Information.
- Java Project/Paper/Uml Diagram