Introduction - If you have any usage issues, please Google them yourself
Ex3.6 wagon sequence problem. Problem description : In a train station, a connecting track to a side track, the formation of a railway transition stack, as shown in Fig. Which left orbit for imported cars, the right orbit for export, numbered 1, 2, ..., n n cars were imported from the stack into the transition from the dispatch room arrangements wagon Stack access priorities, as well as cars stack up according to the order re-sequence a1, a2,. , An . . Programming tasks : Given a positive integer n, the left orbital calculation programming wagon followed by No. 1, 2, ..., n, on the right track can get at the maximum number of different cars sequence program. For example, when n = 3, a maximum of five different sequence of the program are as follows : 1 2 3 1 3 2 2 1 3 2 3 1 3 2 1. Data inp
Packet : 27796704stacks.rar filelist
stacks\stacks.cpp
stacks\stacks.pdf
stacks