subject
Computers and Technology, 21.05.2020 07:03 cearp

When we search in Google for "A B C D" this is equivalent to searching for "A AND B AND C AND D", i. e. searching for all documents that contain all four keywords A, B, C and D. We ask you to design an algorithm that does so efficiently. The first thing a search engine does is to generate a hit-list for each keyword. A hit-list is a sorted sequence of document-identifiers (doc-id’s) that contain the keyword in question. Let the hit-lists be in the form of sorted arrays A[1..a], B[1..b], C[1..c], D[1..d] of doc-id’s for the four keywords respectively. Let the lengths of the arrays A, B, C and D be respectively a, b, c, d, where a = n 3 , b = n lg n, c = n 2 and d = n for some parameter n. Give an efficient algorithm that generates the hit-list of doc-ids in which all four keywords A, B, C, D appear; this output hit-list should also be sorted by doc-id. How big is the output hit-list ? Express your answer in asymptotic notation in terms of n with a bound that is as asymptotically tight as possible. Express the running time of your proposed efficient algorithm in terms of n using asymptotic notation (as tight as possible).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
You know the right answer?
When we search in Google for "A B C D" this is equivalent to searching for "A AND B AND C AND D", i....
Questions
question
Chemistry, 15.12.2020 23:20
question
Physics, 15.12.2020 23:20
question
Chemistry, 15.12.2020 23:20
question
Mathematics, 15.12.2020 23:20
Questions on the website: 13722367