23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The factorial function is def<strong>in</strong>ed as<br />

n! = 1 2 3 ·····(n − 1)n.<br />

The b<strong>in</strong>omial coefficient is<br />

which is equal to the number of different comb<strong>in</strong>ations one can def<strong>in</strong>e by choos<strong>in</strong>g k<br />

different items from a collection of n items (where the order does not matter). The<br />

name "b<strong>in</strong>omial coefficient" derives from the b<strong>in</strong>omial expansion:<br />

We also have the follow<strong>in</strong>g relationships.<br />

Proposition A.5: If 0 ≤k≤ n, then<br />

.<br />

Proposition A.6 (Stirl<strong>in</strong>g's Approximation):<br />

where ε(n) is O(1/n 2 ).<br />

The Fibonacci progression is a numeric progression such that F 0 = 0, F 1 = 1,<br />

<strong>and</strong> F n = F n−1 + F n − 2 for n≥ 2.<br />

Proposition A.7: If F n is def<strong>in</strong>ed by the Fibonacci progression, then F n is Θ(g n ),<br />

where g = (1 + )/2 is the so-called golden ratio.<br />

913

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

Saved successfully!

Ooh no, something went wrong!