¬ÝªO: BudaTech ¡· ¦ò¨å¹q¤l¤Æ°Q½×    ªO¥D: HeavenChow
¾\Ū¤å³¹¡G ²Ä 1114/2032 ½g | ¤W½g | ¤U½g | ¦^ÂÐ | Âà±H | Âà¶K | m H d | ªð¦^
µo«H¤H: DavidChiou.bbs@cbs.ntu.edu.tw (Post Gateway), «H°Ï: BudaTech
¼Ð  ÃD: Re: ¤@¨Ç»¡©ú
µo«H¯¸: ¥Ñ ·à¤l§q¯¸ ¦¬«H (Wed Dec 31 12:52:31 1997)


±H¥ó¤H: dnstudio@m2.dj.net.tw [=InterNet E-mail=]
¼Ð  ÃD: Re: ¤@¨Ç»¡©ú
µo«H¯¸: °ê»Úºô¸ô«H¥ó (Tue Dec 30 09:38:11 1997)


ªô¤j­è ¼g¹D¡G
> 
> ==> ©ó Heaven (Heavenchow@Lion) ¤å¤¤­z¤Î:
> :   2.­Y¦r¤¸¤j©ó 128 , «h¦¹¦r¤¸¤Î¤U¤@­Ó¦r¤¸Äݩ󤤤å. Àˬd¦¹¤¤¤å¬O§_¬O»Ý­nªº.
> :   3.­Y¬O¤p©ó 128 , ¥H­^¤å¤Î²Å¸¹¬Ý«Ý. (¥]¬A´«¦æ½X)
> :   4.³B²z§¹³o­Ó¤¤¤å©Î­^¤å, ¦A´«¤U¤@­Ó¦r.
> 
>     ³oùاڭӤH¦³¨Ç¤p¸gÅç, ©Î³\¥i¥H´£¤É·j´M³t²v¡]¦pªG­n·j´M
> ªº¤å¥ó¬Û·í¦h, ¦Ó¨Ï¥Îªºµ{¦¡»y¨¥¸û°ª¶¥ªº¸Ü¡^:
> 
>     "¥i¸ÕµÛ¥ý¤£ºÞ¤¤­^¤å, ¥þ³¡¥Î­^¤åªº·j´M¤è¦¡. §ä¥Xªºµ²ªG¦A¥H¤¤¤å
>      filter ¨Ó°£¥h»~§Pªº§Y¥i. "
> 
³o¬O cbs ¤Wªº°µªk?
¯u­n´£°ª³t«×, «h¶·­n«Ø¥ß index table, ¦Ó¥B§Q¥Î¦p hashing table ªº
¸ê®Æµ²ºc, search ®É¥ý search ¦¹ table ¦A®Ú¾Ú¨ä index §ä¨ì which file
which line in the file, the string position within the line.

>     ¥t¥~, ¹ï©ó¸ûµu½gªº¤ñ¹ï¡]©Ò¥H¦ò¨å·j´Mº case ©Î³\¤£¾A¥Î¡^,
> ¦³®É­Y¨Ï¥Î¸û°ª¶¥ªº»y¨¥¡]ex: Perl¡^, ©Î³\¥i¥ý±N©Ò¦³ªº¤¤¤å¦r¶¡¥HªÅ
> ¥Õ¹j¶}, µM«á¦A¥HªÅ¥Õ¬°¦r¤¸ªº¶¡¹j³æ¦ì. ³o­Ó¦n³B¬O­^¤å¤Î¤¤¤åªº¤ñ¹ï
> ¥i¤@¦¸¸Ñ¨M±¼, ¦Ó¥B¬O¨Ì·Ó¤¤­^ªº¬Û¹ï¶¶§Ç. ¤£¹L®Ä²v¦p¦ó§Ú¨S¦³¥J²Óµû
> ¦ô¹L, ¶È¨Ñ°Ñ¦Ò.
> 
¦pªG¥Îªº¬O­^¤åª©ªº search engine, ³Q search ªº¤¤¤åfile¥Î³o­Ó³B²z
À³¬O­Ó¦n¤èªk(¦p¦­´Áªº netscape Åã¥Ü¤¤¤åªº°ÝÃD), ¦pªG¦Û¤v¼gµ{¦¡, 
ÁÙ¬O¥Î 128 ¨Ó°Ï§O´N¥i¥H¤F, ¤£¹L¨ä¥Lªº string manupitation ´N
³£¥i¯à¦Û¤v­n°Ê¤â¼g¤F.

>     ªþ±a¤@´£ªº¬O, ¦b³æ±Ð±Â¥H«eµo®iªº cgrep ¤W, ¦³ "´«¦æ·j´M" ªº
> ¥\¯à. ¨Ò¦p»¡¥H¤U¤å¥ó:
> "Æ[¦Û¦bµÐÂĦæ²`¯ë
>  ­Yªiù»e¦h®É·Ó¨£"
>     ­n§ä¥X "¯ë­Y" ªº¸Ü, ´N¥²¶·¨ã¦³´«¦æ·j´Mªº¥\¯à¡]³o¦b maha
> ªº´ú¸Õ¤]¦³«ü¥X¡^, ¦]¦¹¥i¥H¦Ò¼{¥¼¨Ó¥[¤J¦¹¤@¥\¯à¡]¾Ú§Ú©Òª¾,
> ³æ±Ð±Â cgrep ªº§@ªk¦n¹³¬O define ¤@­Ó¬Y¤j¤pªº buffer, ¯à±N
> «e¤@¦æªº³Ì«á­± n ­Ó¦r¤¸©M³o¤@¦æ±µ°_¨Ó, ¤@¦P¶i¦æ¤ñ¹ï?¡^
> 
¥½¾Ç¤W­Ó¤ëµoªíªº fts (¤¤¤å¥þ¤åÀ˯Áµ{¦¡)¤]°µ¤F "´«¦æ·j´M"ªº¥\¯à,
¤£¹L¬O¥Î«e¤@¦æªº§À»P«á¤@¦æªºÀY¨Ó±±¨î, ·íªì«ä¦Òªº®É¶¡¤£¤Ö¦ý³Ì«áªº 
algorithm «o¤£¬O«Ü½ÆÂø.

ps: fts ¦b¦p¨Óºô¤W­± http://www.dharma.org.tw/tool/fts95.zip

¾\Ū¤å³¹¡G ²Ä 1114/2032 ½g | ¤W½g | ¤U½g | ¦^ÂÐ | Âà±H | Âà¶K | m H d | ªð¦^

Éà ¥x¤j·à¤l§q¦ò¾Ç±M¯¸  http://buddhaspace.org