- 博客(0)
- 资源 (1)
- 收藏
- 关注
CDS 503 machine learning materials
1.ppt of machine learning
2.materail for perparing the two test and final test
3.the solution for experiment set and assignment
2022-08-22
该算法用来快数排序字符串
appendix:
arr = {haled,demagnetization,pension,jung,phonographers,inconsistency,kington
,kelland,tiddles,goriest,lubricious,co-extends,spent,unnecessary,snack,cha-cha-cha
,dudgeon,stanza,bernadette,relinquish,orks}
快速获取字符串字典顺序
2022-04-15
排序一个数组数字,书法复杂度O(n)
Appendix:
Example:[275, 87, 426, 61, 409, 170, 677, 503]
localhost:airline_crews kinbunhua$ python sort_number.py
[[170], [61], [], [503], [], [275], [426], [87, 677], [], [409]]
[[503, 409], [], [426], [], [], [], [61], [170, 275, 677], [87], []]
[[61, 87], [170], [275], [], [409, 426], [503], [677], [], [], []]
sorted list: [61, 87, 170, 275, 409, 426, 503, 677]
2022-04-15
QuickSelect算法
this function returns kth smallest element in arr[l...r],using quicksort based method. without sorting all the elements in the list
2022-04-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人