Computer Algebra Spring 2014 Assignment Sheet 4

Computer Algebra Spring 2014 Assignment Sheet 4

Prof. Friedrich Eisenbrand Discussions from: April 01, 2014 Alfonso Cevallos and Yuri Faenza Computer Algebra Spring 2014 Assignment Sheet 4 Exercises marked with a ? can be handed in for bonus points. Due date is April 15. Exercise 1 Show that the following alternative algorithm for computing the gcd of a,b N is correct 2 and give an upper bound on its running time. INPUT: a,b N, OUTPUT: gcd(a,b). 2 SET r a, r 0 b, e 0. Æ Æ Æ WHILE 2 r and 2 r 0 j j SET r r /2, r 0 r 0/2, e e 1. Æ Æ Æ Å WHILE r 0 0 6Æ WHILE 2 r SET r r /2. j Æ WHILE 2 r 0 SET r 0 r 0/2. j Æ IF r 0 r SET (r,r 0) (r 0,r ). Ç Æ SET r 0 r 0 r . Æ ¡ RETURN r 2e . ¢ Exercise 2 n n Let A Q £ . Denote the columns of A by a ,..., a . Let B be an upper bound on the 2 1 n absolute values of entries in A. 1. Give a formal proof (only sketched in class) of the Hadamard bound det(A) Qn a , j j · j 1 j j j2 where is the Euclidean norm, using the Gram-Schmidt orthogonalization process.Æ j¢j2 Derive from this that det(A) nn/2B n. j j · 2. Prove Leibniz’s bound det(A) B nn!. How does it compare to Hadamard bound? j j · Exercise 3 (?) In class we stated (without proving it) that 1 The number of bit operations for performing Gaussian elimination is polynomial in ¦ the bit size of the input. First prove n n For a matrix A Z £ with all entries bounded in absolute value by ¢, one has log( det(A) ) ² 2 j j Æ O(n log(n) n log(¢). Å Then prove . ¦ Exercise 4 m n Let M R £ , and M 0 be the matrix obtained after performing an elementary row operation 2 on M. a) Show that there exists an invertible matrix X such that M 0 XM. Æ b) Let B be the output of Gaussian elimination when applied to A. From a), one imme- diately checks that B XA for some invertible matrix X . Modify the Gaussian elimi- Æ nation algorithm as to compute X . Exercise 5 Let T (G) be the Tutte matrix of a graph G, and º(G) the cardinality of the maximum matching of G. a) Given a graph G, show that there exists a subgraph H of G with a perfect matching such that 2º(G) 2º(H) rank(T (H)) rank(T (G)). Æ Æ Æ b) Give an efficient randomized algorithm for computing the cardinality of a maximum matching of a graph that outputs the correct answer with probability at least 1/2. Exercise 6 (?) Implement an algorithm that takes as input the adjacency matrix of a graph, and then uses the Tutte matrix and the Schwartz-Zippel lemma to check if the graph has a perfect match- ing. 2.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us