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, ...
    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.
    Free Test
    Community Answer
    Consider the process track request are 98, 183, 37, 122, 14, 124, 14, ...
    Introduction:
    The C-Look algorithm is a disk scheduling algorithm used to determine the order in which disk requests are serviced. It is a variation of the C-Scan algorithm and is commonly used in disk drives.

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

    Steps to calculate the total number of seeks:

    1. Sort the process track requests:
    Arrange the process track requests in ascending order to get a clear understanding of the disk locations being accessed.

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

    2. Split the process track requests into two halves:
    Split the sorted process track requests into two parts based on the initial seek location. One part will consist of requests to the right of the initial seek, and the other part will consist of requests to the left.

    Left requests: 14, 14, 37
    Right requests: 65, 67, 98, 122, 124, 124, 183

    3. Calculate the total number of seeks:
    3.1. Calculate the seeks for the right requests:
    - As the C-Look algorithm moves towards the right, it services the requests in ascending order until the highest request is reached.
    - Calculate the seeks by subtracting the current request from the next request and taking the absolute value.
    - Sum up all the seeks for the right requests.

    Seeks for the right requests:
    (65-53) + (67-65) + (98-67) + (122-98) + (124-122) + (124-124) + (183-124) = 12 + 2 + 31 + 24 + 2 + 0 + 59 = 130

    3.2. Calculate the seeks for the left requests:
    - Since the C-Look algorithm doesn't go back to the beginning, we don't consider the seeks for the left requests.

    4. Calculate the total number of seeks:
    Total number of seeks = Seeks for the right requests + Seeks for the left requests = 130 + 0 = 130

    Final answer:
    The total number of seeks for the C-Look algorithm is 130.
    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