Sunday, January 13, 2008

Insertion Sort

a=floor(100*rand(1,10));
%figure(1)
%bar(a)
%axis tight
%set(gca,'nextplot','replacechildren');
%p = 1;
for i=2:length(a)
for j=1:i-1
if a(i) temp = a(i);
for k=i:-1:j+1
a(k)=a(k-1);
end
a(j)=temp;
end
%bar(a)
%pause(.1)
%F(p) = getframe;
%p = p+1;
end
a
end


%close all
%pause
%movie(F,1)
a =

49 89 82 64 81 66 34 28 34 53


a =

49 82 89 64 81 66 34 28 34 53


a =

49 64 82 89 81 66 34 28 34 53


a =

49 64 81 82 89 66 34 28 34 53


a =

49 64 66 81 82 89 34 28 34 53


a =

34 49 64 66 81 82 89 28 34 53


a =

28 34 49 64 66 81 82 89 34 53


a =

28 34 34 49 64 66 81 82 89 53


a =

28 34 34 49 53 64 66 81 82 89

Tuesday, June 26, 2007


Thursday, June 14, 2007

Thursday, April 26, 2007

I have got suicidal attitudes. 4 rotis and rice and now just cant work.love.relationship.son.mba.great things.security.hi.birthday.mathematics.sleeping.SEZ.full rupee convertability.gora.achena lok.my managher talking.dream.pain.

Monday, March 12, 2007

  • One of the big factors in marketing is social influence. You are more likely to download a song if you know it has been downloaded by many others. Content does not matter.
  • A big group of people is more likely to take a better decision if it has enough information.