0% found this document useful (0 votes)
23 views

Algorithm On Behalf of Interviewer Case

The document describes algorithms from the perspective of both a candidate and interviewer during an interview process. For the candidate algorithm, it outlines different cases: if the interviewer is reading a magazine, the candidate waits until the page is finished; if the interviewer is sleeping, the candidate wakes them up to start the interview. It also describes the candidate waiting in the waiting room or leaving if no chair is available. For the interviewer algorithm, it describes interviewing candidates in a loop until all are done. It then resets variables for the next set of interviews. It also includes subcases where the interviewer may read a unfinished/new magazine or sleep depending on if there are more candidates waiting or not.

Uploaded by

docsanshm
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Algorithm On Behalf of Interviewer Case

The document describes algorithms from the perspective of both a candidate and interviewer during an interview process. For the candidate algorithm, it outlines different cases: if the interviewer is reading a magazine, the candidate waits until the page is finished; if the interviewer is sleeping, the candidate wakes them up to start the interview. It also describes the candidate waiting in the waiting room or leaving if no chair is available. For the interviewer algorithm, it describes interviewing candidates in a loop until all are done. It then resets variables for the next set of interviews. It also includes subcases where the interviewer may read a unfinished/new magazine or sleep depending on if there are more candidates waiting or not.

Uploaded by

docsanshm
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

INTERVIEW SYSTEM..

Algorithm on behalf of Candidate case: Case 1: If(interviewer reads magazine) State of the candidate: wait( while finishes current page of the magazine) Case 2: if(interviewer sleeping) Candidate wakes him up;interview processed; Case 3:while(interview is running) Case I:candidate goes to waiting room Case II:candidate waits for his turn Case III:if (chair!=free) The candidate leaves

ALGORITHM ON BEHALF OF INTERVIEWER CASE:


Step 1:Interviewing candidate For(Candidate=1;candidate<=max;interview++) Processing interview; Step 2:Finishing interview Candidate=0;interview=0 Step 3: [subcase 1] Step I:checking waiting room While(candidate !=0) Case1:Interview runs; while (candidate=0) case2: reading unfinished magazine; case3: read new magazine

while(reading magazine=0) case4: sleep; Subcase 2: While(candidate=0) Case1: reading unfinished magazine; Case2: read new magazine while(reading magazine=0) case3: sleep;

------x----------------all the students are hereby instructed to change the algorithm with proper modification that you can think, as because at the time of interview they will ask your idea and opinion.x

You might also like