13.04.2013 Views

Análise de complexidade - UFMG

Análise de complexidade - UFMG

Análise de complexidade - UFMG

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

-<br />

-<br />

-<br />

1<br />

n<br />

n(n+1)/2<br />

n(n+1)/2<br />

n(n-1)/2<br />

n(n-1)/2<br />

-<br />

-<br />

void e2(int n)<br />

{<br />

int i, j, x, y;<br />

x = y = 0;<br />

for(i = 1; i

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

Saved successfully!

Ooh no, something went wrong!