TU Wien:Diskrete Mathematik für Informatik VO (Drmota)/Prüfung 2015-11-27

Aus VoWi
Zur Navigation springen Zur Suche springen

1 Generating functions

[Bearbeiten | Quelltext bearbeiten]

a) A(z) is the OGF of an. Compute the OGF of bn und cn

bn=Σk=0nak

Solution: Either by building difference of b_n and b_n+1, or applying convolution formula

cn=n∗an

Solution: Differentiate formula for (a_n) = 1, multiply z

b) D(z)

d0=1 and

dn=Σk=0ndk⋅(n−k) for n≥1

Solution: Compute difference of d_(n+1) and d_(n), simplify, build the difference again, plug in OGF formula

2 Möbius function

[Bearbeiten | Quelltext bearbeiten]

a) Calculate Möbiusfunction

Solution: -1 IIRC

b) Relations (c,b) and (d,a) removed, what is the new μ(0,1)

Solution: 1 IIRC

a) Compute the maximal flow of

Solution: Use Edmond Karp Algo (=Ford Fulkerson with shortest path)

b) Does the maximal flow change if edge (a,d) is capped.

Solution: No, same flow can be pushed over other edges if (a,d) is missing

4 Irreducible Polynoms / System of Congruences

[Bearbeiten | Quelltext bearbeiten]

Irreducible Polynoms over Z3

[Bearbeiten | Quelltext bearbeiten]

f(x)=x2+x+1

g(x)=x2+2x+1

Solution: Plug in all x∈Z3, irreducible if there are no roots

System of Congruences

[Bearbeiten | Quelltext bearbeiten]

y3≡1mod3

12y≡9mod15

Solution: Fermat's little theorem for the y^3 part, then Chinese Remainder Theorem