The document describes an adaptation of the harmonic search algorithm and graph coloring algorithm to solve the exam hall seating arrangement problem.
The adapted harmonic search algorithm begins by separately assigning students of each subject code to arrays. It then defines limits on the number of groups per hall and an adjustment rate for groups. An accepting rate is calculated for the number of students per hall. Hall seating arrangements are initially randomized subject to constraints. The arrangements are then adjusted using the graph coloring algorithm until all constraints are satisfied. The efficient final seating arrangement for each hall is displayed.
The adapted graph coloring algorithm assigns students to seats in a hall by subject group, ensuring that students of the same subject code are not seated near each other by prioritizing
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views2 pages
Existing Algorithm: Pa Accept
The document describes an adaptation of the harmonic search algorithm and graph coloring algorithm to solve the exam hall seating arrangement problem.
The adapted harmonic search algorithm begins by separately assigning students of each subject code to arrays. It then defines limits on the number of groups per hall and an adjustment rate for groups. An accepting rate is calculated for the number of students per hall. Hall seating arrangements are initially randomized subject to constraints. The arrangements are then adjusted using the graph coloring algorithm until all constraints are satisfied. The efficient final seating arrangement for each hall is displayed.
The adapted graph coloring algorithm assigns students to seats in a hall by subject group, ensuring that students of the same subject code are not seated near each other by prioritizing
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
EXISTING ALGORITHM
HARMONIC SEARCH ALGORITHM
begin Objective function f(x), x=(x1,x2, ,xd)T Generate initial harmonics (real number arrays) Define pitch adjusting rate (rpa), pitch limits and bandwidth Define harmony memory accepting rate (raccept) while ( t<Max number of iterations ) Generate new harmonics by accepting best harmonics Adjust pitch to get new harmonics (solutions) if (rand>raccept), choose an existing harmonic randomly else if (rand>rpa), adjust the pitch randomly within limits else generate new harmonics via randomization end if Accept the new harmonics (solutions) if better end while Find the current best solutions GRAPH COLORING ALGORITHM Step 1. Assign the first color c1to the first vertex v1 Step 2. Vertex v2 is assigned color c1 if it is not adjacent to v1 otherwise it gets assigned color c2 Steps3..n Vertex vi is assigned the first possible color in the priority list of colors (i.e. the first color that has not been assigned to one of the already colored neighbors of vi).
begin 1. Assign each subject code students separately in separate arrays. 2. Mention limit of groups in each hall and adjusting rate of groups. 3. Calculate accepting rate (i.e.,)No of students can occupy each hall in arrays. 4. Initialize each hall seating arrangement randomly from each group. 5. while (temp<=no of halls) Check initial arrangement whether it satisfies the condition(same subject code students should not sit near) Adjust limit of groups by looping and allocate arrangement using GRAPH COLORING ALGORITHM till satisfy all constraints end 6. Display efficient seating arrangement for each hall. end GRAPH COLORING ALGORITHM STEP1: Assign first group first number to the first seat of the hall. STEP2: Next seat is assigned by next number if it not nearer to same subject code students otherwise next group next number STEP3N: ith place is assigned by first possible group in the priority list of groups.