Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 1 . Indicate whether the following statements are true or false, and provide one sentence reasoning for your choice. Streaming algorithms require the entire
Q Indicate whether the following statements are true or false, and provide one sentence reasoning for your choice.
Streaming algorithms require the entire input stream to be stored in memory for processing.
Streaming algorithms are only applicable to realtime data streams and cannot be used on static datasets.
Streaming algorithms can only process data in a sequential manner and cannot handle parallel processing.
Streaming algorithms always provide exact results for computations on streaming data.
Universal hashing requires the use of cryptographic hash functions.
Universal hashing guarantees that every key will be hashed to a unique location in the hash table.
Universal hashing guarantees a constant time complexity for insertion and retrieval in a hash table.
Property testing is only applicable to numerical or quantitative properties, not qualitative properties.
Property testing algorithms can handle dynamic datasets that change over time.
Property testing guarantees finding an exact solution to a problem in sublinear time.
Q Given a data stream of integers
marks
Apply the MisraGries algorithm with a parameter to identify the topk frequent items in the stream. Show the stepbystep process of the algorithm by drawing a table, including the initialization, updating counts, and evicting infrequent items. Finally, provide the final output of the algorithm. Discuss the benefits of using the MisraGries algorithm compared to traditional frequency counting approaches for large streams of data.
Note: Not drawing table in your solution will result in marks for this question.
Perform Reservoir Sampling to select a subset of size from the stream. Show the stepbystep process of selecting the elements and the final subset.
marks
Q Universal hashing is important in designing solutions as it allows for efficient and effective hashbased data structures.
Formally define a universal oneway hash function family.
Provide a solution data structre and algorithm that utilizes such a family to speedup searching keywords across a large set of text documents.
Define the properties of your solution and their relations. What are the tradoffs?
Why was a universal hash function family required in your solution? ie is it not possible to use any other hash function in your method? What impact it has on your solution?
marks
Q Property testing provides a means to verify if an algorithm correctly satisfies certain properties without examining the entire input. In this question, consider property testing for an algorithm that determines whether a graph is connected or not.
Formally define the property of "connectedness" for a graph. Include the necessary conditions for a graph to be considered connected.
Describe the process and steps in which your defined property can be tested to verify if a given algorithm correctly determines the connectedness of a graph.
Assume you are given a graph represented by its adjacency matrix. Provide with an example a stepbystep explanation of how you would conduct the property test and determine if the algorithm passes or fails the test.
marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started