Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the process track request are 98, 18... Start Learning for Free
Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?
    Correct answer is '322'. Can you explain this answer?
    Most Upvoted Answer
    Consider the process track request are 98, 183, 37, 122, 14, 124, 14, ...
    Overview:
    The C-Look algorithm is a disk scheduling algorithm used to minimize the seek time in a disk system. It works by serving all requests in only one direction until there are no more requests in that direction, and then it jumps back to the beginning of the disk to serve the remaining requests in the opposite direction.

    Given Information:
    - Initial seek: 53
    - Track requests: 98, 183, 37, 122, 14, 124, 14, 124, 65, 67

    Step 1: Sorting the Track Requests:
    To implement the C-Look algorithm, we need to sort the track requests in ascending order.

    Sorted track requests: 14, 14, 37, 65, 67, 98, 122, 124, 124, 183

    Step 2: Calculating Total Seeks:
    Now, let's calculate the total number of seeks by applying the C-Look algorithm.

    2.1) Moving in the Forward Direction:
    - Start at the initial seek position (53).
    - Move forward until reaching the highest track request that is less than or equal to the initial seek position (98).
    - During this forward movement, count the number of seeks required.

    Seeks in the forward direction: 14, 37, 65, 67, 98

    2.2) Jumping to the Beginning:
    - Since there are no more requests in the forward direction, we jump back to the beginning of the disk (track 0).
    - Count this jump as a seek.

    Seeks after jumping to the beginning: 1

    2.3) Moving in the Reverse Direction:
    - Move forward from track 0 to the highest track request (183) in the reverse direction.
    - During this reverse movement, count the number of seeks required.

    Seeks in the reverse direction: 122, 124, 124, 183

    Step 3: Calculating Total Seeks:
    Now, we sum up the seeks from all the steps to find the total number of seeks.

    Total seeks = Seeks in the forward direction + Seeks after jumping to the beginning + Seeks in the reverse direction
    Total seeks = 14 + 37 + 65 + 67 + 98 + 1 + 122 + 124 + 124 + 183
    Total seeks = 825

    Step 4: Correcting the Answer:
    It seems there was a mistake in the given answer. The correct total number of seeks for the C-Look algorithm is 825, not 322.
    Free Test
    Community Answer
    Consider the process track request are 98, 183, 37, 122, 14, 124, 14, ...
    Concept:
    C-Look algorithm:

    An enhanced variant of the LOOK Algorithm is the Circular-LOOK Algorithm. The head goes across the disc from the first request at one end to the last request at the other, serving all the requests in between. The Head turns around when it gets to the final request on the other end.
    The given data,
    The process track request are= 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 
    The initial seek = 53
    C-Look algorithm:

    Total number of seeks= ( 183-53 )+(183-14) +(37-14)
    Total number of seeks= 322
    Hence the correct answer is 322.
    Explore Courses for Computer Science Engineering (CSE) exam

    Similar Computer Science Engineering (CSE) Doubts

    Top Courses for Computer Science Engineering (CSE)

    Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer?
    Question Description
    Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer?.
    Solutions for Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
    Here you can find the meaning of Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer?, a detailed solution for Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer? has been provided alongside types of Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the process track request are 98, 183, 37, 122, 14, 124, 14, 124, 65, 67 and the initial seek is 53. What is the total number of seeks for the C-Look algorithm?Correct answer is '322'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
    Explore Courses for Computer Science Engineering (CSE) exam

    Top Courses for Computer Science Engineering (CSE)

    Explore Courses
    Signup for Free!
    Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
    10M+ students study on EduRev