楼主: 逃亡~
跳转到指定楼层
上一主题 下一主题
收起左侧

Berkeley CS 61B Homework8

 
🔗
dengzeyu147 2017-5-24 22:21:02 | 只看该作者
全局:
llllll  第八个
回复

使用道具 举报

🔗
liniua 2017-7-4 09:02:20 | 只看该作者
全局:
[ 6 3 6 7 2 5 6 6 3 9 ]
[ 2 3 3 5 6 6 6 6 7 9 ]
[ 7 6 2 1 8 0 8 1 2 9 ]
[ 0 1 1 2 2 6 7 8 8 9 ]
Mergesort time, 10 Integers:  0 msec.
Quicksort time, 10 Integers:  0 msec.
Mergesort time, 100 Integers:  2 msec.
Quicksort time, 100 Integers:  1 msec.
Mergesort time, 1000 Integers:  7 msec.
Quicksort time, 1000 Integers:  7 msec.
Mergesort time, 10000 Integers:  24 msec.
Quicksort time, 10000 Integers:  12 msec.
Mergesort time, 100000 Integers:  171 msec.
Quicksort time, 100000 Integers:  157 msec.
Mergesort time, 1000000 Integers:  3247 msec.
Quicksort time, 1000000 Integers:  1417 msec.

Process finished with exit code 0
回复

使用道具 举报

头像被屏蔽
🔗
老毒物 2017-7-24 23:10:26 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

🔗
yywwd 2017-8-7 00:05:38 | 只看该作者
全局:
所以 运行时间 跟CPU也有关?
更多图片 小图 大图
组图打开中,请稍候......
回复

使用道具 举报

🔗
yagamy 2017-8-13 11:46:11 | 只看该作者
全局:
交作业,还有一周开学,加油~~ 这个作业做的不顺,前面学的try&catch都有点忘了,cast也搞得有点晕。
更多图片 小图 大图
组图打开中,请稍候......
回复

使用道具 举报

全局:

哇 是真滴慢 电脑型号 MacBook Air(13 英寸,2015 年初)
回复

使用道具 举报

🔗
大龙猫 2017-10-12 04:50:06 | 只看该作者
全局:
交作业~
回复

使用道具 举报

🔗
ddy301 2017-10-25 23:17:58 | 只看该作者
全局:
打卡,为什么我的运行时间要这么久?
回复

使用道具 举报

🔗
skyevil12 2017-12-15 09:53:46 | 只看该作者
全局:
完成了. Quicksort 花了些時間想recursive的處理

  1. D:\Git\DSA\CS61B\hw8>java -ea ListSorts
  2. [ 5 1 4 8 1 8 1 9 7 5 ]
  3. [ 1 1 1 4 5 5 7 8 8 9 ]
  4. [ 4 9 4 2 6 7 5 6 8 7 ]
  5. [ 2 4 4 5 6 6 7 7 8 9 ]
  6. Mergesort time, 100 Integers:  0 msec.
  7. Quicksort time, 100 Integers:  0 msec.
  8. Mergesort time, 1000 Integers:  0 msec.
  9. Quicksort time, 1000 Integers:  0 msec.
  10. Mergesort time, 10000 Integers:  13 msec.
  11. Quicksort time, 10000 Integers:  10 msec.
  12. Mergesort time, 100000 Integers:  97 msec.
  13. Quicksort time, 100000 Integers:  84 msec.
  14. Mergesort time, 1000000 Integers:  1994 msec.
  15. Quicksort time, 1000000 Integers:  1216 msec.
复制代码


我的MergeSort和QuickSort都是Stable的
Is mergesort stable?  
  Ans: Stable
  Why or why not?
  Ans: My merge sort would enqueue the first equal item, so that would not impact the order of equal items(ListSorts #61).

  Is quicksort stable?  
  Ans: Stable
  Why or why not?
  Ans: My quick sort would not change the order of equal items(ListSorts #167).
回复

使用道具 举报

🔗
bigworld 2018-3-10 22:26:45 | 只看该作者
全局:
homework8打卡~
虽然挺简单的,但是还是写了一整个晚上。。每次写完总要debug才能通过。。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表