tag:blogger.com,1999:blog-4065355585053018339.post9101579966744804646..comments2024-03-22T00:27:04.843-07:00Comments on Wave the world: Program to implement SSTF disk scheduling algorithm in CSurajhttp://www.blogger.com/profile/15184752039260040643noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-4065355585053018339.post-51195529194020539992017-03-29T20:57:49.775-07:002017-03-29T20:57:49.775-07:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-40941602628899355432016-12-16T13:36:28.330-08:002016-12-16T13:36:28.330-08:00Of course this would give wrong ans,programmer usi...Of course this would give wrong ans,programmer using zero based indexing while taking input and starting from t[1] while taking abs difference .<br />Afzal Ahmadhttps://www.blogger.com/profile/00943766147515205309noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-65802010975438043922016-10-14T21:33:51.038-07:002016-10-14T21:33:51.038-07:00thanks i'll look into it.thanks i'll look into it.<br />Surajhttps://www.blogger.com/profile/15184752039260040643noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-67709636984989131752016-10-09T20:33:23.276-07:002016-10-09T20:33:23.276-07:00There is another correction needed:
for(i=0;i<...There is another correction needed:<br /><br />for(i=0;i<n;i++)<br />t[i]=abs(head-queue[i]);<br /><br />instead of<br /><br />for(i=1;i<n;i++)<br />t[i]=abs(head-queue[i]);<br /><br />The way it was, the first value of the queue is not going to be properly evaluated in some cases.Leonardo Varinihttps://www.blogger.com/profile/01528671766751891890noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-21276861337690819602016-10-04T03:23:10.112-07:002016-10-04T03:23:10.112-07:00NiceNiceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-66267463825875892712015-09-13T22:08:54.578-07:002015-09-13T22:08:54.578-07:00this program needs one correction
for(i=1;i<n;...this program needs one correction<br /> for(i=1;i<n;i++)<br /> instead of <br />for(i=1;i<n-1;i++)<br /><br /><br /><br /> seek=seek+abs(head-queue[i]);<br /> head=queue[i];<br /> Data explorerhttps://www.blogger.com/profile/01131996468762388831noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-69542627972297819382015-05-25T23:03:25.521-07:002015-05-25T23:03:25.521-07:00wrong ans
wrong ans<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-14530880545635052702015-05-24T07:41:05.989-07:002015-05-24T07:41:05.989-07:00here t[0] will give garbage value.here t[0] will give garbage value.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-8239233256342611262015-05-11T13:14:49.451-07:002015-05-11T13:14:49.451-07:00wrong result.... what about t[0]wrong result.... what about t[0]Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-55530173429195361732015-04-06T19:46:47.533-07:002015-04-06T19:46:47.533-07:00Please run program correctly. Output is 50.0004 av...Please run program correctly. Output is 50.0004 ave seek time.Surajhttps://www.blogger.com/profile/15184752039260040643noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-43122845265103034062015-03-31T01:30:35.921-07:002015-03-31T01:30:35.921-07:0098
58
55
39
38
18
150
160
184
head initial 100
...98 <br />58<br />55<br />39<br />38<br />18<br />150<br />160<br />184<br /><br />head initial 100<br /><br />output avg seek 27.5Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-55918081814355508852015-03-18T08:44:26.963-07:002015-03-18T08:44:26.963-07:00Tell me your input data. I'll check.Tell me your input data. I'll check.Surajhttps://www.blogger.com/profile/15184752039260040643noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-8476490343328729262015-03-11T23:45:43.043-07:002015-03-11T23:45:43.043-07:00didnt get the correct output...try to check the co...didnt get the correct output...try to check the code or u might have posted a wrong code Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-79979453387782411412014-05-07T00:40:39.013-07:002014-05-07T00:40:39.013-07:00what are your input? tell.what are your input? tell.Surajhttps://www.blogger.com/profile/15184752039260040643noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-69129389194659649342014-05-06T23:02:12.966-07:002014-05-06T23:02:12.966-07:00Try giving other inputs , this code won't show...Try giving other inputs , this code won't show the proper result.Anonymoushttps://www.blogger.com/profile/09944825656755508712noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-22435529309753667522014-01-17T18:19:43.265-08:002014-01-17T18:19:43.265-08:00Hi,Thank you.Hi,Thank you.Surajhttps://www.blogger.com/profile/15184752039260040643noreply@blogger.comtag:blogger.com,1999:blog-4065355585053018339.post-87226288153420129022014-01-17T00:19:10.173-08:002014-01-17T00:19:10.173-08:00Hi, Nice Post. you raise some really great points.... Hi, Nice Post. you raise some really great points. Thanks for sharing.<a href="http://fieldservicesmanagmentsoftware.blogspot.com/" rel="nofollow">Scheduling Software</a>Anonymoushttps://www.blogger.com/profile/17906451848774176072noreply@blogger.com