Èí¼þ¹¤³Ìµ¼ÂÛ£¨µÚÁù°æ£©Õꣷª IJÓÀÃô¿ÎºóϰÌâ´ð°¸

·¨Ìص㣬ÕÒ³ö²¢¸ÄÕýαÂëÖеĴíÎó¡£×ÖÆµÍ³¼Æ³ÌÐòµÄαÂëÈçÏ£º INITIALIZE the Program READ the first text record

DO WHILE there are more words in the text record

DO WHILE there are more words in the text record EXTRACT the next text word

SEARCH the word-table for the extracted word IF the extracted word is found INCREMENT the word¡¯s occurrence count ELSE

INSERT the extracted word into the table END IF

INCREMENT the words-processed count END DO at the end of the text record READ the next text record

END DO when all text records have heen read PRINT the table and summary information TERMINATE the program

´ð£ºINSERT the extracted word into the tableÔÚÕâ¸öºóÃæ£¬ÓÐûÓиøÕâ¸öwordµÄoccurrence/count¸³ÖµÎª1

µÚ¶þÌâ

2¡¢Ñо¿ÏÂÃæ¸ø³öµÄαÂë³ÌÐò£¬ÒªÇó£º (1) »­³öËüµÄ³ÌÐòÁ÷³Ìͼ¡£

(2) ËüÊǽṹ»¯µÄ»¹ÊǷǽṹ»¯µÄ?˵Ã÷ÀíÓÉ¡£ (3) ÈôÊǷǽṹ»¯µÄ£¬Ôò

(a) °ÑËü¸ÄÔì³É½öÓÃ3ÖÖ¿ØÖƽṹµÄ½á¹¹»¯³ÌÐò£» (b) д³öÕâ¸ö½á¹¹»¯Éè¼ÆµÄαÂ룻 (c) ÓúÐͼ±íʾÕâ¸ö½á¹¹»¯³ÌÐò¡£ (4) ÕÒ³ö²¢¸ÄÕý³ÌÐòÂß¼­ÖеĴíÎó¡£

COMMENT:PROGRAM SEARCHES FOR FIRST N REFERENCES

TO A TOPIC IN AN INFORMATION RETRIEVAL SYSTEM WITH T TOTAL ENTRIES

INPUT N

INPUT KEYWORD(S)FOR TOPIC I=O MATCH=0 DO WHILE I¡ÜT I=I+1

IF WORD=KEYWORD THEN MATCH=MATCH+1 STORE IN BUFFER END

IF MATCH=N THEN GOTO OUTPUT END END IF N=0

THEN PRINT ¡åNO MATCH¡å

OUTPUT:ELSE CALL SUBROUTINE TO PRINT BUFFER

INFORMATION END

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ìæ»»Îª@)