资 源 简 介
回文判别
实验要求:称正读和反读都相同的字符序列为“回文”,如“abba”和“abccba”是“回文”,“abcde”和“ababab”则不是“回文”,试设计一个算法,判别读入的一个以@为结束符的字符序列是否是“回文”。
实验目的:
1、掌握循环队列的定义及应用;
2、掌握队列的基本操作;
3、进一步熟练掌握栈的基本操作及应用;
4、初步学会解决具体问题的算法设计。-Experimental identification requirements palindrome: that is read and the anti-time sequence of characters are the same as a " palindrome" , such as " abba" and " abccba" is " palindrome" , " abcde" and " ababab" is not " palindrome" and try to design an algorithm to determine a time to @ for the character sequence at the end of it is " Palindrome." The experiment was: 1, master cycle and application of the definition of the queue 2, master the basic operation of the queue 3, and further stack master the basic operation and applications 4, a preliminary settlement of specific issues of the Institute of algorithm design.