• Nem Talált Eredményt

Combinatorial optimization

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Combinatorial optimization"

Copied!
2
0
0

Teljes szövegt

(1)

Combinatorial optimization

Papp László <lazsa@cs.bme.hu>

2022. spring 1st practice

1. Determine whether these functions are inO(n2), Ω(n2) orΘ(n2). (a) 10n2+ 20n+|sin(n)|

(b) 8n2log(n) 2. Show that:

(a) 8n2log2n∈O(n3) (b) 2n−√

n∈Ω(n)

(c) (n+ 32)(2n2+ 12n)∈Θ(n3) (d) (nlog2n+n2)(n3 + 2)∈O(n5) 3. Show that8nlog2n /∈Θ(n).

4. Sort these function to increasing order according to their growing speed. So iffi preceeds fj that means that fi ∈O(fj) and fj ∈/O(fi).

f1(n) = 8n3 f2(n) = 5√

n+ 1000n f3(n) = 2(log2n)2 f4(n) = 1514n2log2(n)

5. We have two algorithms which solve the same problem. The time complexity of algorithm A is the function fA(n) and similarly the time complexity ofB is fB(n). We know that fA(n)∈O(fB(n)). Are these statements true?

(a) Algorithm A is faster than algorithm B on all possible inputs?

(b) Algorithm A is faster than algorithm B on all suciently large inputs?

6. LetG= (V(G), E(G))be the following graph: V(G) = {1,2,3,4,5,6,7,8}

E(G) ={{1,2},{1,4},{2,3},{3,4},{3,5},{7,8}

LetH = (V(H), E(H)) be the following graph: V(H) = {1,2,3,4}

E(H) ={{1,2},{1,4},{2,3}. (a) Draw a diagram of G.

(b) Determine the degree of vertex 3. (c) Does G contain an isolated vertex?

(d) Is Gsimple?

(e) How many cycles does G contain?

(f) Draw a diagram of H. (g) Is H a subgraph of G?

(h) Is H an induced subgraph of G?

1

(2)

7. Consider the functions f(n) = 1.5n! and g(n) = 200(n − 1)!. Prove or disprove the following statements:

(a) f(n)∈O(g(n)) (b) g(n)∈O(f(n)) (c) f(n)∈Ω(g(n)) (d) g(n)∈Ω(f(n)) (e) f(n)∈Θ(g(n)) (f) g(n)∈Θ(f(n))

8. Which a, b >1integers satisfy the following?

(a) logan∈O(logbn) (b) 2an ∈O(2bn)

2

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

In this case some of the vertices of the conflict graph has a preassigned color, and we have to solve the precoloring extension problem: extended the coloring of these vertices to

For the latter purpose the optimal solution of the ILP algorithm was used as reference in those problem instances that both algorithms were able to solve in acceptable time.. We

For the latter purpose the optimal solution of the ILP algorithm was used as reference in those problem instances that both algorithms were able to solve in acceptable time.. We

After this we have to analyze the process from the airline point of view in order to understand the real function of the information systems operating at different airlines.. We have

2 High-speed elevator car system dynamics model In order to solve the transverse acceleration response of a high speed elevator car system with random parameters under

2.2.. In the next subsection we try to challenge the students to apply the same recur- sive scheme in order to solve the Hermite interpolation problem given above. We start again

We described the application of Pólya’s method to a different domain of problem solving in a form of a special session for selected students.. This enables students to get a

Fuzzy mathematical programming (FMP) was developed in order to adequately solve optimization problems which poses non stochastic indeterminacies. 2) FMP with