һ - רҵ·ĵϷƽ̨

算法设计与分析试卷及答案 - 百度文库

Դû ʱ䣺2025/11/29 9:51:22 loading ƪĵֻ
˵ݽԤݿܲȫҪĵҪݣwordʹáword΢ź:xxxxxxxQQxxxxxx ܸṩĵл֧½⡣

ϿƼѧԺ ѧĩ

Ϣѧרҵ 꼶㷨

ͣ ԾͣC ʱ120 ľ һ ܷ ͳ һ⣨ÿС3 ֣30 ֣ 1. Oͦȱʾfg֮Ĺϵ______________________________

f?n??nlogng?n??logn

?1,?8f(3n/7)?n,n?1n?22. 㷨ʱ临Ϊf(n)??㷨ʱ临ԵĽ

Ϊ__________________________

3. 㷨ȡ______________________________ 4. 㷨_______________________________________________________

5. ڶĽռķУһһλΪ_________________________

6. 㷨µĸУɲʵʼֵ_____µʱ临ԡ

7. 󦸷ʵޣ޵ĽԽ___________Խмֵ 8. ____________________________ö̬滮㷨ǰᡣ

9. ̰ѡָ________________________________________________________ ____________________________________________________________

10. ݷĽռУ______________ԣӸռ

⣨ÿС10֣30֣

1. ݷĻ˼뼰ûݷIJ衣

2. 8ҵ{1,2,,8}Ҫ2̨M1M2ɵˮɼӹÿҵӹ˳M1ϼӹȻM2ϼӹM1M2ӹҵiʱֱΪ

M1 M2 ҵ 10 5 1 2 7 2 8 1 3 12 15 4 6 16 5 9 3 6 4 11 7 14 13 8 һŵȷʹôӵһҵڻM1ϿʼӹһҵڻM2ϼӹʱ٣ʱ䡣

ŵȷΪ

ʱΪ_______________________

3. ȶʽ֧޽編ͼдv1㵽v9ĵԴ·뻭ŽĽռҪм䱻ĽáǣмĽõԲȦv2Ž˫ԲȦ

v2621v532610v83v131v3264v72104v9v4

v6

㷨գÿ2֣10֣

R={r1, r2, ..., rn}ҪеnԪأԪr1, r2, ..., rnͬһ㷨гRвͬУͬе㷨£дȱʧ䡣

template void Swap(Type &a,Type &b){ Type t=b;

________________; ., n}ҪڳΪLĴŴϡiڴŴϵijLi1in 洢ҪȷnڴŴϵһ洢ʹܹڴŴϴ洢ܶijڱ֤洢ǰ»ҪŴʴﵽ

1洢㷨֤㷨ȷԣ 2ʹŴʴﵽķ㷨˼·

算法设计与分析试卷及答案 - 百度文库.doc ĵWordĵصԣ㸴ơ༭ղغʹӡ
Ƽ
Copyright © 2012-2023 һ Ȩ | ϵ
:վز֪ʶȨݡϢ紫ȨתصƷַȨ,һ֪ͨǣǻἰʱɾ
ͷQQxxxxxx 䣺xxxxxx@qq.com
ICP2023013149
Top