[理工] [資結] 97清大資工 Knuth algorithm
清大資工97年的11(b)
Briefly describe how to use the Knuth-MorrisPratt algorithm to determine if a
string is a cyclic rotation of another string in linear time. For example,
tea and eat are cyclic rotaions of each other.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.39.4.138
推
02/06 20:03, , 1F
02/06 20:03, 1F
→
02/06 20:14, , 2F
02/06 20:14, 2F
推
02/06 21:39, , 3F
02/06 21:39, 3F
→
02/06 21:40, , 4F
02/06 21:40, 4F
→
02/06 21:40, , 5F
02/06 21:40, 5F
→
02/06 21:41, , 6F
02/06 21:41, 6F
→
02/06 21:55, , 7F
02/06 21:55, 7F
推
02/06 23:33, , 8F
02/06 23:33, 8F
→
02/06 23:33, , 9F
02/06 23:33, 9F