Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 1st, 2005, 3:39 AM   #1
lhk_mgtf2008
Newbie
 
Join Date: Jun 2005
Posts: 8
Rep Power: 0 lhk_mgtf2008 is on a distinguished road
Recursive Permutation

I would like to write a program where can do permutation by using recursive technique...

problem is i have more 100 data

1,2,3,4....................................100,101,102

then to get all permutation result, i think i have to wait very very very very ................................................ long tim e

so would like to ask ...izit have any way that can shorted the time atleast in one day lo....pls
your helping i appreciate
lhk_mgtf2008 is offline   Reply With Quote
Old Jul 1st, 2005, 7:37 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Although recursive operations take some additional time because of function call overhead, they more commonly fail because of other resource deficiencies (stack available, etc.). The first shot at decreasing time used is to make absolutely sure your algorithm is the best possible. Optimizing for performance is usually not approached correctly by the inexperienced or uninitiated. One needs to measure or profile the code to see where it's REALLY spending most of its time. I would recommend you read this link before proceeding.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 6th, 2005, 11:18 PM   #3
lhk_mgtf2008
Newbie
 
Join Date: Jun 2005
Posts: 8
Rep Power: 0 lhk_mgtf2008 is on a distinguished road
Thanx for ur advise, i read all about the link...

ACtually this not i want to do, but i need to need this becuase of my job, i m trainee in a company, i requested to do this program. although i had tell that is impossible to get the result so fast but supervisor try first befor give up..!!!!! if like that , then i think ...... hai~~~~ waiting to die...
lhk_mgtf2008 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC