[Task] Suffix Array another Bug resolved
前言就是上個 Task 囉,假設句子為
您終於回來了
您終於回來了
您終於回來了
我終於回來了
那麼程式原來的 output 是
您終於回來了,3
終於回來了,4
而原來的 bug 版本跑過之後,會將
終於回來了,4
吃掉,只剩第一個,因為做了修正。修改之後就好了
前言就是上個 Task 囉,假設句子為
您終於回來了
您終於回來了
您終於回來了
我終於回來了
那麼程式原來的 output 是
您終於回來了,3
終於回來了,4
而原來的 bug 版本跑過之後,會將
終於回來了,4
吃掉,只剩第一個,因為做了修正。修改之後就好了
檢查的結果,發覺是在 word_freq.c 裡的程式沒寫好, diff 如下:
Bug 是這樣發現的,b6s 請我處理一段文字,如下:
爺爺您回來了
爺爺您回來啦
爺爺您終於回來了
爺爺您終於回來啦
爺爺您終於回來了啊
爺爺您終於回來了嗎
爺爺
爺爺
終於回來了
終於回來啦
終於
終於
Mayday!! Mayday!! Desktop Down!! I repeat, Desktop Down!!
我不是五月天的粉絲,可是我必須要在這裡叫他們的團名 (cry) 因為…
受保護的文章不會產生摘要。
受保護的文章不會產生摘要。
受保護的文章不會產生摘要。
There are many aspects to a PH.D. degree. You need to polish your ability to speak, to write and to present (or sell) in both Chinese and English.
In particular, it is imperative for you to make sure that your TOEFL is at least 600 (or 250 in the computer test) before graduation. This is just a reminder.
許老師