Expert-Computer - تابع پارتیشن برای مرتب کردن به روش سریع
آفتاب به گیاهی حرارت می دهد که سر از خاک بیرون آورده باشد .(کوروش کبیر)
جز توکل بر خدا سرمایه ای در کار نیست ***هر که را باشد توکل کار او دشوار نیست

می توانید از کد زیر استفاده کنید و برای توضیحات بیشتر روی اینجا کلیک کنید


int partition (int arr[ ] , int low , int high) 


 int lb = low + ۱ , rb = high , temp , pivot = arr[ low ] , p; 

 while (lb <= rb)


  while (arr[ lb ] <= pivot && lb <= rb) 


  while (arr[ rb ] > pivot && lb <= rb) 


  if (lb < rb) 


   temp = arr[ lb];

   arr[ lb ] = arr[ rb];

   arr[ rb ] = temp;



 (if (rb == high

  p = high; 

else if(rb == low)

  p = low; 


  p = lb – ۱;

 arr[ low ] = arr[ p];

 arr[ p ] = pivot;

 return p;


نوع مطلب : آموزشی و درسی، 
برچسب ها :
لینک های مرتبط :

دوشنبه 30 مرداد 1396 05:04 ب.ظ
Hi there, I found your blog by means of Google whilst searching
for a comparable topic, your site got here up, it looks
great. I've bookmarked it in my google bookmarks.

Hi there, simply changed into aware of your weblog thru Google, and located that it is truly informative.
I'm gonna be careful for brussels. I'll appreciate for those who continue this in future.
A lot of other folks will likely be benefited from your writing.
یکشنبه 8 مرداد 1396 10:36 ب.ظ
Hey there! I know this is kind of off topic but I was wondering if
you knew where I could locate a captcha plugin for
my comment form? I'm using the same blog platform as yours and
I'm having problems finding one? Thanks a lot!
جمعه 6 مرداد 1396 10:41 ب.ظ
This article gives clear idea in favor of the new visitors of blogging, that actually how to do running a blog.
جمعه 23 تیر 1396 04:19 ق.ظ
If some one desires to be updated with most up-to-date technologies therefore he must be pay
a visit this website and be up to date daily.
سه شنبه 6 تیر 1396 02:29 ب.ظ
I comment when I especially enjoy a article on a blog or I have something to contribute to the
discussion. Usually it is a result of the passion displayed in the post I looked at.
And after this article Expert-Computer - تابع پارتیشن برای مرتب کردن به روش سریع.
I was moved enough to drop a comment :-) I actually
do have 2 questions for you if it's okay. Is it just me or does it look like some of these
remarks appear as if they are coming from brain dead people?

:-P And, if you are writing at additional online social sites,
I'd like to keep up with you. Could you make a list the complete urls of your social pages like your linkedin profile, Facebook
page or twitter feed?
شنبه 27 خرداد 1396 12:41 ق.ظ
Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or
something. I think that you can do with some pics to drive the message home a bit, but other than that, this is great blog.
A great read. I'll certainly be back.
چهارشنبه 3 خرداد 1396 08:32 ب.ظ
Its like you read my mind! You seem to know a lot about this, like you wrote the
book in it or something. I think that you could do with
some pics to drive the message home a bit, but instead of
that, this is wonderful blog. A great read. I'll certainly
be back.
سه شنبه 2 خرداد 1396 01:01 ب.ظ
Thank you a lot for sharing this with all folks you actually recognise what you're speaking approximately!
Bookmarked. Please additionally seek advice from my web site
=). We can have a hyperlink exchange arrangement between us
یکشنبه 3 اردیبهشت 1396 04:19 ق.ظ
Your style is so unique compared to other people I've read stuff from.

Thank you for posting when you've got the opportunity, Guess I
will just bookmark this blog.
یکشنبه 3 اردیبهشت 1396 01:04 ق.ظ
Hey there! Quick question that's completely off topic. Do you know how to make your site mobile friendly?
My blog looks weird when viewing from my iphone
4. I'm trying to find a template or plugin that might be able
to correct this issue. If you have any suggestions, please share.
پنجشنبه 24 فروردین 1396 10:38 ق.ظ
I take pleasure in, lead to I found exactly what I was taking a
look for. You've ended my 4 day long hunt! God Bless you man. Have a nice day.
جمعه 18 فروردین 1396 09:54 ب.ظ
This post is worth everyone's attention. How can I find out more?
دوشنبه 13 دی 1389 11:49 ق.ظ

درباره وبلاگ

با سلام و تشکر از بازدیدکننده ی گرامی
این وبلاگ در جهت بالا بردن اطلاعات شما در زمینه علم کامپیوتر و ترفندهای مورد نیاز برای کار کردن راحت با کامپیوتر ایجاد شده است و ( با توجه به اینکه رشته من نرم افزار است ) امیدوارم برای افرادی که رشته دانشگاهی خود را کامپیوتر انتخاب کرده اند کمک هر چند اندکی کرده باشم.
در این وبلاگ بین مطالب آموزشی و کامپیوتری از مطالب متفرقه و ... برای جلوگیری از یکنواخت شدن وبلاگ استفاده می شود.
منتظر نظرات و پیشنهادهای شما هستم

my personal web page == www.samadnajjar.ir

مدیر وبلاگ : صمد نجار
کدام موضوع ها را در این وبلاگ بیشتر می پسندید ؟

آمار وبلاگ
  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :
فرم تماس
نام و نام خانوادگی
آدرس ایمیل
امکانات دیگر

کلیه حقوق این وبلاگ برای Expert-Computer محفوظ است