Try   HackMD

Algorithm - Homework 3

姓名: 陈声发
学号:2019280355

Problem 1

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

We can maintain winning statistics of player 0 and a play terminates with a win for player 0 iff player 0 is declared a winner and the play is a win for player 1 iff it runs forever.

The set Q of nodes of this game consists of nodes of the form

(a,p,b~) where
a
is a node of the parity game, the player
p{player 0,player 1}
moves next and
b~
represents the winning statistics of player 0.

The number of elements of Q can be bounded by

O(n4).

The starting node is

(s,p,0~), where
0~
is the vector of all
bi
with value 0,
s
is the starting
node of the parity game and
p
is the player who moves first.

Note that the number of increasing functions from

{0,1,2,...,log(n)+2} to
{1,2,3,...,log(n)}
can be bounded by
O(n2)
.

And

bkbk+1 implies
bk+k<bk+1+k+1
and therefore the set can construct all the
bk
. So we need at most
logn+3
additional bits to indicate which
bk
is 0. The overall winning statistics can then be represented by
3logn+5
bits. And we need 1 bit to represent the player and
logn
bits to represent the current node in the play. So each node can be represented with
4logn
+ 6 bits resulting in
O(n4)
node in
Q
.

Therefore, the time complexity is

O(2mn4), where m is the number of distinct value on the nodes.
For
mlogn
, there is a solution of time complexity
O(n5)
.

Problem 2

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

We know all matching edges are tight and every blossom

B contains
|B|12
matching edges

  • w(M)=eMyz(e)=uVy(u)+bΩz(B)|B|12

For every other matching

M, a blossom
B
contains no more than
|B|12
edges of
M

  • w(M)

    eMyz(e)

    =uVy(u)+bΩz(B)|ME(B)|

    uVy(u)+bΩz(B)|B|12

Therefore,

M is a maximum weighted matching.

Problem 3

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

There are at most

O(mt) dense rows or columns.
The multiplication of dense part taks
nω(p)=O(max{n2,n2(mtnα)β})
time.
The naive multiplication enumerates at most
O(t)
many nonzero
bj,k
for each nonzero
ai,j
, so it takes
O(mt)
time.
In total
O(max{n2,n2(mtnα)β}+mt)
time.
We choose
t=O(n2αβ1+βm1β1+β)
, time complexity
O(max{n2,n2αβ1+βm2β1+β})
.
Let
m=nk
, the time complexity has a better bound than
O(nω)
when
m<nα+ω2+ω22β
.