Algorithm implementation

View previous topic View next topic Go down

Algorithm implementation

Post by bit0218-saeed on Wed Jul 14, 2010 12:31 am

#include
#include
int main(void)
{
int i=0,k,N,p=0,temp=0;
printf("\nEnter arry size: ");
scanf("%d",and);
int ar[N];
for(i=0;i {
ar[i]=rand()%50;
printf("%4d",ar[i]);
}
for(k=1;k {
for(p=0;p<=(N-1-k);p++)
{
if(ar[p]>ar[p+1])
{
temp=ar[p];
ar[p]=ar[p+1];
ar[p+1]=temp;
}
}
}
printf("\n\nsloting result \n");
for(i=0;i printf("\n");
return 0;
}


[You must be registered and logged in to see this image.]

bit0218-saeed
Pre-Alpha Release
Pre-Alpha Release

Course(s) :
  • BIT

Blood Group : O+
Posts : 6
Points : 22

View user profile

Back to top Go down

Re: Algorithm implementation

Post by bit0218-saeed on Wed Jul 14, 2010 12:33 am

[You must be registered and logged in to see this image.] it's good

bit0218-saeed
Pre-Alpha Release
Pre-Alpha Release

Course(s) :
  • BIT

Blood Group : O+
Posts : 6
Points : 22

View user profile

Back to top Go down

Re: Algorithm implementation

Post by BIT0122-Amit on Wed Jul 14, 2010 1:46 am

saeed Very Happy good to see that you are becoming active in forum. Please use proper code tags for posting codes in forum. For example:

Code:

[code]#include and;stdio.and;
#include and;conio.and;
int main(void)
{
   
int i=0,k,N,p=0,temp=0;
...
...
}
[/code]

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0129-Tabassum on Wed Jul 14, 2010 2:15 am

Congrats Saeed Very Happy I am very happy to see you here. Please force your friends to have this code from this forum, don't give them it in class, tell tehm to take it from forum Razz

_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়
avatar
BIT0129-Tabassum
Global Moderator
Global Moderator

Course(s) :
  • BIT

Blood Group : A+
Posts : 1496
Points : 2298

View user profile http://probe-tabassum.blogspot.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0122-Amit on Wed Jul 14, 2010 2:16 am

BIT0129-tabassum wrote:Congrats Saeed Very Happy I am very happy to see you here. Please force your friends to have this code from this forum, don't give them it in class, tell tehm to take it from forum Razz

Neutral that will be kinda like black mailing you know.
Forcing never works ..

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0129-Tabassum on Wed Jul 14, 2010 2:18 am

Forcing never works...but if they are not forced to come here, they might not know the usefulness of forum. You also forced us to give posts.

_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়
avatar
BIT0129-Tabassum
Global Moderator
Global Moderator

Course(s) :
  • BIT

Blood Group : A+
Posts : 1496
Points : 2298

View user profile http://probe-tabassum.blogspot.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0122-Amit on Wed Jul 14, 2010 2:36 am

BIT0129-tabassum wrote:Forcing never works...but if they are not forced to come here, they might not know the usefulness of forum. You also forced us to give posts.

:p I don't remember acting like I won't give something because it is already at forum though... when you guys asked nicely :p

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0129-Tabassum on Wed Jul 14, 2010 2:42 am

You were and are very much active and give all the things in forum...but you show us the way to give post in forum (sometimes forced Razz) but now we feel, it was a great effort of you Very Happy

_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়
avatar
BIT0129-Tabassum
Global Moderator
Global Moderator

Course(s) :
  • BIT

Blood Group : A+
Posts : 1496
Points : 2298

View user profile http://probe-tabassum.blogspot.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0220-Iftekhar on Wed Jul 14, 2010 4:18 am

[You must be registered and logged in to see this image.] actually,have done this algorithm in java already.....but was almost the same as mine in java ......very little change
avatar
BIT0220-Iftekhar
Administrator-RC

Course(s) :
  • BIT

Blood Group : B+
Posts : 434
Points : 630

View user profile http://iftekharunplugged.blogspot.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0122-Amit on Wed Jul 14, 2010 4:19 am

hmm Neutral but interestingly, both of you never mentioned which algorithm it is Neutral

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0220-Iftekhar on Thu Jul 15, 2010 4:06 am

algorithm is on bubble sorting [You must be registered and logged in to see this image.]
avatar
BIT0220-Iftekhar
Administrator-RC

Course(s) :
  • BIT

Blood Group : B+
Posts : 434
Points : 630

View user profile http://iftekharunplugged.blogspot.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0213-forhad on Fri Aug 13, 2010 12:33 am

kivabe j forum a post kore?????????janina

amar o onek kisu post korar cilo..........and those r all necessary

BIT0213-forhad
Alpha Release
Alpha Release

Course(s) :
  • BIT

Blood Group : O+
Posts : 39
Points : 76

View user profile

Back to top Go down

Re: Algorithm implementation

Post by BIT0129-Tabassum on Fri Aug 13, 2010 1:51 am

kivabe j forum a post kore?????????janina

amar o onek kisu post korar cilo..........and those r all necessary

Nice decision Very Happy But why you are asking how to post? The above is a post of you also Razz

If you want to post something, go to that section (like if you want to give a post on UBUNTU,then go to UBUNTU section, if want to give a post on your DLD class then go to 202 or its corresponding section etc). Then click to "new topic". You can then post ypur desire thing Smile

I think you are confused how to upload or give a download link or image in forum, right? Then go to forums tutorial section. Its under General Discussions. You can find some tutorials on uploading/downloading files, giving image, use of emoticons etc.

Explore it and enjoy it! Very Happy

_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়
avatar
BIT0129-Tabassum
Global Moderator
Global Moderator

Course(s) :
  • BIT

Blood Group : A+
Posts : 1496
Points : 2298

View user profile http://probe-tabassum.blogspot.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0122-Amit on Fri Aug 13, 2010 7:15 pm

BIT0129-tabassum wrote:
kivabe j forum a post kore?????????janina

amar o onek kisu post korar cilo..........and those r all necessary

Nice decision Very Happy But why you are asking how to post? The above is a post of you also Razz


He was talking about how to make a new topic -_-!


_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: Algorithm implementation

Post by BIT0129-Tabassum on Sat Aug 14, 2010 2:48 am


He was talking about how to make a new topic -_-!

Forhad gave a new topic before I replied here. But I wrote
Nice decision Very Happy But why you are asking how to post? The above is a post of you also Razz
just for joking Razz

But after that..I have told him how to make a new topic Very Happy

_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়
avatar
BIT0129-Tabassum
Global Moderator
Global Moderator

Course(s) :
  • BIT

Blood Group : A+
Posts : 1496
Points : 2298

View user profile http://probe-tabassum.blogspot.com

Back to top Go down

Re: Algorithm implementation

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum