ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

مرتبه ي اجراي الگوريتم

 
Post new topic   Reply to topic    ParsX.com Forum Index -> اصول ساختمان داده ها
View previous topic :: View next topic  
Author Message
ati_sham
مهمون يكي دو روزه


Joined: 13 Oct 2008
Posts: 12

PostPosted: Mon Oct 13, 2008 4:04 pm    Post subject: مرتبه ي اجراي الگوريتم Reply with quote

سلام خسته نباشيد
چه جور ي ميشه مرتبه ي اجراي الگوريتم ها رو تشخيص داد ؟ Confused
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Wed Oct 15, 2008 11:38 am    Post subject: Reply with quote

سلام . به سختی !!!
معمولا اگه یه حلقه باشه n اگه دوحلقه تو در تو باشه nبتوان 2 و ...
Back to top
ati_sham
مهمون يكي دو روزه


Joined: 13 Oct 2008
Posts: 12

PostPosted: Wed Oct 15, 2008 7:53 pm    Post subject: heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp Reply with quote

من بيشتر توضيح مي خوام لطفا Crying or Very sad
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Sat Oct 18, 2008 9:39 am    Post subject: Reply with quote

خوب باید خودت بخونی از یه کتاب دیگه مثلا وقتی یه حلقه داشته باشیم که از 1 تا n می شماره پیچیدگیش میشه O(n) وقتی دو حلقه تو در تو مثلا شمارنده اولی i باشه شمارنده دومی j باشه که اولی n بار اجرا می شه O(n2) و اگه حلقه while باشه بسته به نوع شمارنده عوض می شه . و همینطوری می ری تا سخت و سخت تر می شه تا اینکه دیگه اونجاهاشم من بلد نیستم.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> اصول ساختمان داده ها All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum