Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 13-07-2010, 12:27 AM   #1 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default combination array


i want to find combination of elements in an array with two rules :

1. the output should be 4 (for 4 arr elements)
2. repetitions are allowed

eg {A,B,C,D}

o/p:
{A,A,A,A}
{A,A,A,B}
{A,A,B,B}
''
''
''


thanx in advance.. (coding in c#/c)
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-07-2010, 02:02 PM   #2 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: combination array

did this forum run out of programmers ????

or did nobody understand the question ??

tell me how "this" relates to my question , still looking for answers
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Old 22-11-2010, 04:04 PM   #3 (permalink)
Wise Old Owl
 
abhidev's Avatar
 
Join Date: Sep 2009
Posts: 1,624
Default Re: combination array

Can u elaborate a bit?
__________________
Core 2 duo E4500 2.2gHz , ASUS P5GCMX , 3GB Transcend , Corsair VX 550w, MSI R5770 HAWK Edition 1GB, CM HAF-922, LG W2243T 21.5" LCD, I-Ball Baton
abhidev is offline   Reply With Quote
Old 22-11-2010, 10:20 PM   #4 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: combination array

i forgot about this thread. it is LONG time back.

found the solution myself. it was a small part of a much larger algo.

so this is "solved". thnks for bumping.

btw the codeproject link is the basic step of the solution
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Old 24-11-2010, 12:05 PM   #5 (permalink)
Wise Old Owl
 
abhidev's Avatar
 
Join Date: Sep 2009
Posts: 1,624
Default Re: combination array

Hey how much does ur Proccy, mobo and Ram cost you...m planning to buy a same config and also tell me how do you find the performance in games?
__________________
Core 2 duo E4500 2.2gHz , ASUS P5GCMX , 3GB Transcend , Corsair VX 550w, MSI R5770 HAWK Edition 1GB, CM HAF-922, LG W2243T 21.5" LCD, I-Ball Baton
abhidev is offline   Reply With Quote
Old 25-11-2010, 05:52 PM   #6 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: combination array

Quote:
Originally Posted by abhidev View Post
Hey how much does ur Proccy, mobo and Ram cost you...?
32.6 K
(1.5 months old price)

Quote:
Originally Posted by abhidev View Post
tell me how do you find the performance in games?
should have started a new thread but still..

Unigine Heaven Benchmark > dx11 >
min fps: 43
max fps: 102

Unigine Tropics Benchmark >
min fps: 97
max fps: 188

played :
>Prince of Persia: The Forgotten Sand
>burnout paradise
>nfs hot pursuit
>COD MW2
>HAWX

all at 1600X900 res. 4X FSAA. all graphics options at max.
no frames dropped and no lagging

just loving the GFX churning out the frames
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Old 25-11-2010, 06:04 PM   #7 (permalink)
Excessive happiness
 
furious_gamer's Avatar
 
Join Date: Jun 2008
Location: Bangalore
Posts: 2,974
Default Re: combination array

@abhidev -- see ur siggy
Core 2 duo E45000 2.2gHz , ASUS P5GCMX , 2GB Transcend , Corsair VX 550w, MSI R5770 HAWK Edition 1GB, CM HAF-922, LG 21.5" LCD, I-ball 2.1 speakers


__________________
My First Android phone : Samsung Galaxy SL i9003 - Rooted & Gingerbread XXKPQ
Updated : superteekz_V2 ROM for XXKPQ.

PS Request
furious_gamer is offline   Reply With Quote
Old 25-11-2010, 07:11 PM   #8 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default Re: combination array

Take hardware discussions out of this thread please. Ta

@arpanmukharjee, post your pseudocode/solution in this thread if you can
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.
Liverpool_fan is offline   Reply With Quote
Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DIGIT CTC 2 Discussion onlyabhi Contests 1382 30-05-2011 04:08 AM
Help needed in selecting a good sound card - speaker combination saud_khan Hardware Q&A 52 09-09-2007 11:47 PM
Suggest Processor and motherboard combination princedmedia Hardware Q&A 6 14-06-2007 03:41 PM
array of JPanel in java.... tweety_bird_bunny QnA (read only) 3 27-09-2006 08:52 PM
Which combination of Antivirus,AntiSpyware do u use??? Andyiz Software Q&A 68 09-07-2006 11:50 AM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2