Modeling & Simulation, SYCS 410
Program #2 Alternate

Professor: Dr. Kathleen M. Kaplan, Dept. of Systems & Computer Science

This site is used in conjunction with the course. It does not contain all the material given in class.

There may be errors in this material, and it should not be used in place of material given in the classes.

Programming Assignment #2 (The Other One!)
Evolutionary Computing
Due November 29, Thursday


Write a program in C or C++ to program example given in class.


So, here we have two sets of parents - the parents given by the user, and the parents randomly generated. These sets will each mate and produce at most two children each. These children will be selected or rejected, and if all are chosen, at most 6 more matings will occur - {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, and {3, 4} - to produce the next generation.

Given the eleven constraints given in class:

  1. B ¹ 3
  2. C ¹ 2
  3. A ¹ B
  4. B ¹ C
  5. C < D
  6. A = D
  7. E < A
  8. E < B
  9. E < C
  10. E < D
  11. B ¹ D


Let the user input:
  1. Two vectors as defined in class in order [ A B C D E ].
  2. The cross-over position. The user can be queried as to all possible positions and the user can choose one.
  3. The heuristic threshold used for eliminating and selecting next generation.

The output is as follows:
  1. The heuristic of the vectors. This is calculated within the program, not given by the user.
  2. The child vectors with heuristics.
  3. Whether or not each child vector will be allowed to live for next generation propagation.
  4. The next generation of the remaining children from both sets with heuristics and whether or not they will be allowed to propagate the next generation.


Submit:
  1. A hard copy with two runs.
  2. Email your program(s) to me - not the executable - at [email protected].

    Notes:
    1. Your name, ID, SYSC 410, Programming Assignment #2, Evolutionary Computing, Dr. Kaplan, Fall 2001, must be typed into the comments of your program at the top.
    2. The program must be fully commented.
    3. The program must be written as an upper class student should - with appropriate data structures, etc.
    4. The program must be your own work.
    5. The input and output given must be described to the user.
    6. No late assignments will be accepted.


    Modeling & Simulation, 410
    Dr. K. Kaplan, Fall 2001