edited by
413 views
0 votes
0 votes
10. In the process of designing an $n$ storey building, an architect designed $k$ types of floor modules. Even though the ground floor can use any of the $k$ modules, subsequent floors need to satisfy compatibility constraints. For each module $M_{i}$, there is some subset $B_{i}$ of modules on top of which $M_{i}$ can bebuilt. As an example consider the case when $k = 3$ and say $B_{1}=\left \{ M_{1},M_{2},M_{3} \right \},$ $B_{2}=\left \{ M_{1},M_{3} \right \}$ and $B_{3}=\left \{ M_{1},M_{2} \right \}$. Then a $4$-story building can have the floor plan (from ground to $4$) as $M_{2}M_{1}M_{2}M_{3}$ but not $M_{3}M_{2}M_{2}M_{3}$. The additional cost of adding an extra floor with say a floor module $M_{j}$ can change depending on the structure of the building so far. What is the tightest upper bound on the run-time of
an algorithm to compute the cheapest floor plan for the $n$ storey building.
A. $O(k^{n})$
B. $O(n^{k})$
C. $O(nk)$
D. $O(nk^{2})$
E  $O(n^{2}k)$
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
Hakuna Matata asked May 23, 2018
1,157 views
What was the last rank in the waitlist group which got admission offer from IIT Kanpur last year?Is there any chance for waitlist rank of around 20?
0 votes
0 votes
1 answer
3
Souvik33 asked Apr 2, 2023
427 views
There are Insert and Retrieve_Max operations on a set {}. for n such operations what is the time complexity of the efficient algorithm possible?$n^{2}$nlogn n logn