Showing posts with label SCAN Algorithm. Show all posts
Showing posts with label SCAN Algorithm. Show all posts

SCAN Disk Scheduling Algorithm in C++


#include <iostream>

using namespace std;

int main()
{
    clrscr();
    int n,d[8],a,b,c=0,j,i=0;
    char ch='y';
    cout<<"Enter no. of elements in queue : ";
    cin>>n;
    cout<<"enter value of initial head position : ";
    cin>>a;

Custom Search