Click here to Skip to main content
15,889,853 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: An Algorithm Design Challenge Pin
Bassam Abdul-Baki18-Sep-06 16:49
professionalBassam Abdul-Baki18-Sep-06 16:49 
GeneralRe: An Algorithm Design Challenge Pin
Roger Wright18-Sep-06 17:26
professionalRoger Wright18-Sep-06 17:26 
GeneralRe: An Algorithm Design Challenge Pin
Kastellanos Nikos11-Oct-06 0:34
Kastellanos Nikos11-Oct-06 0:34 
AnswerRe: An Algorithm Design Challenge Pin
Rob Graham18-Sep-06 16:35
Rob Graham18-Sep-06 16:35 
GeneralRe: An Algorithm Design Challenge Pin
Roger Wright18-Sep-06 17:23
professionalRoger Wright18-Sep-06 17:23 
AnswerRe: An Algorithm Design Challenge Pin
ColinDavies29-Sep-06 12:19
ColinDavies29-Sep-06 12:19 
Questioncombination algorithm Pin
kebd14-Sep-06 11:53
kebd14-Sep-06 11:53 
AnswerRe: combination algorithm Pin
ejuanpp15-Sep-06 1:12
ejuanpp15-Sep-06 1:12 
you may try something like this

 static void Main(string[] args)<br />
        {<br />
            int[] nItems = { 2, 3 };<br />
            int[] number = new int[nItems.Length];<br />
            Generate(nItems, number);<br />
        }<br />
<br />
        static void Generate(int[] CategoryItemCount, int[] currentCombination)<br />
        {<br />
            for (int i = 0; i < CategoryItemCount[0]; i++)<br />
            {<br />
                currentCombination[CategoryItemCount.Length - 1] = i;<br />
<br />
                if (CategoryItemCount.Length != 1)<br />
                {<br />
                    Generate(new List<int>(CategoryItemCount).GetRange(1, CategoryItemCount.Length - 1).ToArray(), currentCombination);<br />
                }<br />
                else<br />
                {<br />
                    // store currentCombination<br />
                }<br />
            }<br />
        }<br />


regards
GeneralRe: combination algorithm Pin
kebd15-Sep-06 8:29
kebd15-Sep-06 8:29 
Questiondfgfdg Pin
Gul zeb14-Sep-06 2:13
Gul zeb14-Sep-06 2:13 
Generalfdfdsf Pin
Gul zeb13-Sep-06 21:43
Gul zeb13-Sep-06 21:43 
GeneralRe: fdfdsf Pin
Ed.Poore14-Sep-06 1:04
Ed.Poore14-Sep-06 1:04 
QuestionBezier curve, Newton-Raphelson method, formula problem, please help! [modified] Pin
srev13-Sep-06 4:29
srev13-Sep-06 4:29 
AnswerRe: Bezier curve, Newton-Raphelson method, formula problem, please help! Pin
El Corazon13-Sep-06 16:14
El Corazon13-Sep-06 16:14 
GeneralRe: Bezier curve, Newton-Raphelson method, formula problem, please help! Pin
srev13-Sep-06 23:42
srev13-Sep-06 23:42 
AnswerRe: Bezier curve, Newton-Raphelson method, formula problem, please help! Pin
ejuanpp13-Sep-06 22:00
ejuanpp13-Sep-06 22:00 
GeneralRe: Bezier curve, Newton-Raphelson method, formula problem, please help! Pin
srev13-Sep-06 23:40
srev13-Sep-06 23:40 
General44th Mersenne Prime Discovered Pin
Bassam Abdul-Baki13-Sep-06 3:10
professionalBassam Abdul-Baki13-Sep-06 3:10 
GeneralRe: 44th Mersenne Prime Discovered Pin
Paul Conrad13-Sep-06 20:32
professionalPaul Conrad13-Sep-06 20:32 
QuestionImpossible Numbers Pin
ricecake8-Sep-06 4:13
ricecake8-Sep-06 4:13 
AnswerRe: Impossible Numbers Pin
Kacee Giger8-Sep-06 13:13
Kacee Giger8-Sep-06 13:13 
GeneralRe: Impossible Numbers Pin
ricecake8-Sep-06 13:24
ricecake8-Sep-06 13:24 
Questionnth root? Pin
Steve Echols5-Sep-06 19:21
Steve Echols5-Sep-06 19:21 
AnswerRe: nth root? Pin
ejuanpp5-Sep-06 23:07
ejuanpp5-Sep-06 23:07 
GeneralRe: nth root? Pin
Steve Echols6-Sep-06 4:44
Steve Echols6-Sep-06 4:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.