问题 填空题

假设一棵二叉树的后序遍历序列为DGJHEBIFCA,中序遍历序列为DBGEHJACIF.则其前序遍历序列为______。

答案

参考答案:ABDEGHJCFI

解析:若后序序列为非空,则后序遍历序列最后一个元素应是二叉树的根。那么前半部分非空应是二叉树左子树的中序遍历序列,后半部分非空应是二叉树右子树的中序序列。若判断出左子树非空.那么在后序序列的第二个元素即是左子树的根.再结合中序序列前半部分,递归地就可把左子树判定出来。同样的方法可把右子树判定出来.那么二叉树就唯一地确定出来,这样其前序序列便可得到。
对于本题,首先根据后序遍历序列确定这棵二叉树的根结点为A,然后将根据中序遍历序列确定左右子树的结点及中序遍历序列.分别是“DBGEHJ”和“CIF”;再根据左子树的后序遍历序列“DGJHEB”确定其左子树根结点为B及其左有子树的结点及中序遍历序列。以此类推,从而画出该二叉树,如下图所示,从而确定其前序遍历序列为ABDEGHJCFI。
[*]

填空题

Part 4


Questions 26-45


·Read the following text and decide which answer bestfits each space.
·For questions 26-45, mark one letter A, B, C or D on the Answer Sheet.

Newspapers


Who won the World Cup 1994 football game What happened at the United Nations How did the critics like the new play When an event takes place, newspapers are on the streets (26) the details. (27) anything happens in the world, reporters are on the spot to (28) the news.
Newspapers have one basic (29) to get the news as quickly as possible from its source, from those who make it to those who want to (30) it. Radio, telegraph, television, and (31) inventions brought competition for newspapers. So did the development of magazines and other means of communication. (32) this competition merely spurred the newspapers on. They quickly made (33) of the newer and faster means of communication to improve the speed and (34) the efficiency of their own operations. Today more newspapers are printed and read than ever before.
Competition also led-newspapers to branch out into many other fields. Besides keeping readers (35) of the latest news, today’s newspapers (36) readers about politics and other important and serious matters. Newspapers influence readers’ economic choices (37) advertising. Most newspapers depend on advertising for their very (38) Newspapers are sold at a price that (39) to cover even a small fraction of the cost of production. The main (40) of income for most newspapers is commercial advertising. The (41) in selling advertising depends on a newspaper’s value to advertisers. This is measured (42) circulation. How many people read the newspaper Circulation depends (43) on the work of the circulation department and on the services or entertainment (44) in a newspaper’s pages. But for the most part, circulation depends on a newspaper’s value to readers as a source of information (45) the community, city, country, state, nation, and world—and even outer space.

A.Wherever

B.Whoever

C.Whatever

D.Whichever

单项选择题 A1/A2型题