10.07.2015 Views

University of Paderborn Department of Mathematics Diploma Thesis ...

University of Paderborn Department of Mathematics Diploma Thesis ...

University of Paderborn Department of Mathematics Diploma Thesis ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

80 CHAPTER 4. ALGORITHMS FOR STABLE IDEALSMuPAD Source Code 4.3. As in 4.1, the procedure expects a list <strong>of</strong> lists encoding theset <strong>of</strong> minimal generators <strong>of</strong> a stable ideal I (ordered with respect to the lexicographicorder) and the index n <strong>of</strong> the last variable <strong>of</strong> the polynomial ring R. It outputs the Hilbertpolynomial <strong>of</strong> R/I.Input for the procedure compute Hilbert polynomial.◦ M — a list <strong>of</strong> lists encoding the set <strong>of</strong> generators <strong>of</strong> some stable ideal in lexicographicorder◦ n — the index <strong>of</strong> the last variable <strong>of</strong> the polynomial ring ROutput <strong>of</strong> the procedure compute Hilbert polynomial.◦ p — the Hilbert polynomial <strong>of</strong> R/I, where I is the ideal generated by the monomialsin Mcompute_Hilbert_polynomial:= proc(M, n)local H, g, d, p, j;begin/* First use ’compute_Hilbert_series’ with input M and nto determine the numerator <strong>of</strong> the reduced Hilbertseries and the value <strong>of</strong> d, i.e. the power <strong>of</strong> (1-t) inthe denominator <strong>of</strong> the Hilbert series */H:= compute_Hilbert_series(M, n);d:= n + 1 - (degree(op(H,1)) - degree(op(H,2)));g:= op(H,2);/* Use g and d to compute the Hilbert polynomial bythe above formula */p:= poly(0, [z]);for j from 0 to degree(g) dop:= p + poly(expand(coeff(g,j)*binomial(z+d-1-j,d-1)),[z]);end_for;return(p);end_proc:The above procedure together with 4.1 gives a possible implementation <strong>of</strong> Algorithm 2.29,where the ideas used here were stated in pseudo code.We will now compute the Hilbert polynomials <strong>of</strong> R/I 1 , R/I 2 , R/I 3 and R/I 4 for the ideals<strong>of</strong> Example 4.2.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!