What is the logarithm base-2 of zero? of one

Assignment Help Data Structure & Algorithms
Reference no: EM13167993

1-What is the logarithm base-2 of zero? of one?

 

2-A coworker is considering two algorithms, but does not know which does fewer operations.

Algorithm 1 does  3 times the logarithm base 8 of n operations: 3 log8(n)

Algorithm 2 does the logarithm base 2 of n operations:  log2(n)

How would you advise your coworker on which algorithm to choose?

 

 

Reference no: EM13167993

Questions Cloud

Carry out additions and subtraction : You are to design a Java application to carry out additions and subtractions for numbers of any length. A number is represented as an object which includes a sign and two strings for the whole and decimal parts of the number.
How many milliliters will the patient receive in an eight : A nurse is asked to deliver morphine bt IV to a patient at a rate of 20 mg every four hours. The concentration in the IV bag is given as 0.13%. How many milliliters
Draw the recursive process of mergesort and quicksort : Draw the recursive process of Mergesort and Quicksort for sorting the sequence {5, 1, 2, 9, 7}. You will get a recursion tree for Mergesort and Quicksort respectively. What are their depths?
Object from question 1 manage its display : Write a Java statement to have the object from question 1 manage its display area by dividing it into 3 rows which have 4 columns each.
What is the logarithm base-2 of zero? of one : What is the logarithm base-2 of zero? of one?
Explain what is the total anion concentration : What is the total anion concentration (in mEq/L) of a solution that contains 6.0 mEq/L Na+, 13.0 mEq/L Ca+
Explain how much oxalate unknown should weigh out : If a student weighs out .500g of oxalate unknown and it takes 20.6 mL of permanganate solution to titrate it, how much oxalate unknown should the student weigh out
Unctions for doing sort, search, display, replace, delete : create functions for doing sort, search, display, replace, delete, and add. You can use dynamic memory allocation for enlarge the size of pointer array for adding a new country.
Define thermodynamic properties of urea : Explain the purpose of the "Thermodynamic properties of Urea " Experiment. Also , ca you please tell me any possible sources of error

Reviews

Write a Review

 

Data Structure & Algorithms Questions & Answers

  Sort array of elements using the quick sort algorithm

"sort an array of 10,000 elements using quick sort algorithm as follows: sort the array using pivot as middle element of the array

  Scaled and unscaled value of solution that algorithm finds

For each value of ε, give items included and scaled and unscaled value of solution that algorithm finds. For tables, you only require to show those rows which correspond to values less than or equal to scaled value of this solution.

  Discussion on clustering and data mining

Clustering is generally used along with classification in some applications. In such a case, typically clustering is applied to a dataset to recognize natural grouping of the objects in the dataset,

  Determine expected number of collisions use hash function

Assume we use hash function h to hash n distinct keys into the array T of length m. Suppose simple uniform hashing, determine the expected number of collisions?

  Question about pure aloha

A group of N stations share a 56-kbps pure ALOHA channel. Every station outputs a 1000-bit frame on an average of once every one-hundred secs, even if the previous one has not yet been sent.

  Find minimum number of storage required for bfs and dfs

Assume we have problem space where there is uniform branching factor b and there is single goal node at depth m. Determine the minimum number of nodes expanded and storage required for BFS and DFS?

  Question about structured wiring

Describe how properly installed structured wiring save the need to recable when new applications are added. Provide some examples of a project that required to be recabled because it was not properly installed structured wiring?

  Er diagram of cardinality and modality

Read the following information about World Relief for Disaster Victims (WRDV), a fictional nonprofit organization that provides aid to victims of natural disasters.

  Sql statements

Suppose that the tables T1 and T2 have a 1:1 relationship. Suppose that T2 has the foreign key. Demonstrate the SQL statements necessary to move the foreign key to T1.

  Use separate chaining to store the

Use separate chaining to store the following keys. Consider that each letter is a number corresponding to the sequence of English alphabets. That is, A->1,

  Find maximum possible amount of money by optimal strategy

Removes it from row permanently, and receives value of coin. Find out the maximum possible amount of money we can definitely win if we move first.

  Designing an algorithm for task-array of person numbers

You have been allotted task of designing an algorithm for following task. Someone has built the array of person numbers of all n students enrolled in 331 this fall.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd