Click here to Skip to main content
15,905,682 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T24-Dec-15 6:09
mvePatrice T24-Dec-15 6:09 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T24-Dec-15 13:51
mvePatrice T24-Dec-15 13:51 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
BlueIshDan29-Dec-15 0:21
BlueIshDan29-Dec-15 0:21 
GeneralRe: Converting From Decimal to Custom Counting Definition Pin
Patrice T29-Dec-15 2:45
mvePatrice T29-Dec-15 2:45 
Questionwhat kind of algorithms we use to find minimum spanning tree Pin
Member 1211381321-Dec-15 5:39
Member 1211381321-Dec-15 5:39 
AnswerRe: what kind of algorithms we use to find minimum spanning tree Pin
Chris Losinger21-Dec-15 6:31
professionalChris Losinger21-Dec-15 6:31 
GeneralRe: what kind of algorithms we use to find minimum spanning tree Pin
harold aptroot21-Dec-15 6:57
harold aptroot21-Dec-15 6:57 
GeneralRe: what kind of algorithms we use to find minimum spanning tree Pin
Patrice T21-Dec-15 12:16
mvePatrice T21-Dec-15 12:16 
QuestionHow do I fix blinking or flashing web page in Chrome? (my project ASP.NET) Pin
ahasan nahid9-Dec-15 14:26
ahasan nahid9-Dec-15 14:26 
AnswerRe: How do I fix blinking or flashing web page in Chrome? (my project ASP.NET) Pin
Richard MacCutchan9-Dec-15 22:22
mveRichard MacCutchan9-Dec-15 22:22 
QuestionAlgorithm running time Pin
Lyuboslav Kakanakov4-Dec-15 5:13
Lyuboslav Kakanakov4-Dec-15 5:13 
AnswerRe: Algorithm running time Pin
Richard MacCutchan4-Dec-15 6:49
mveRichard MacCutchan4-Dec-15 6:49 
AnswerRe: Algorithm running time Pin
Patrice T4-Dec-15 10:17
mvePatrice T4-Dec-15 10:17 
AnswerRe: Algorithm running time Pin
Matthew Dennis5-Dec-15 22:09
sysadminMatthew Dennis5-Dec-15 22:09 
QuestionOptimize algorithm arrange an array with items with even-indexs are on left side of array, items with odd-indexs are on right side of array Pin
Hồng Chấn Phát30-Nov-15 22:11
Hồng Chấn Phát30-Nov-15 22:11 
Requirement: using recursion, size of array is an even number.

For example:
0 1 2 3 4 5 (order of index)
a b c d e f (array before arrange)
a c e b d f (array after arrange)

0.......1.......2......3.......4......5.......6......7 (order of index)
a1....b1....a2....b2....a3....b3....a4....b4 (array before arrange)
a1....a2....a3....a4....b1....b2....b3....b4 (array after arrange)

The problem looks easy to solve if we dont care about optimization, we can use temp array or use recursion combine with a loop to shift items ... I think this way is not best solution ....I try to use recursion combine with swap operation, without using loop ... but I fail.

Hope someone suggests me an idea to resolve the problem, thanks any help

modified 1-Dec-15 4:30am.

AnswerRe: Optimize algorithm arrange an array with items with even-indexs are on left side of array, items with odd-indexs are on right side of array Pin
Richard MacCutchan1-Dec-15 2:47
mveRichard MacCutchan1-Dec-15 2:47 
GeneralRe: Optimize algorithm arrange an array with items with even-indexs are on left side of array, items with odd-indexs are on right side of array Pin
Patrice T1-Dec-15 8:32
mvePatrice T1-Dec-15 8:32 
GeneralRe: Optimize algorithm arrange an array with items with even-indexs are on left side of array, items with odd-indexs are on right side of array Pin
Hồng Chấn Phát1-Dec-15 16:06
Hồng Chấn Phát1-Dec-15 16:06 
GeneralRe: Optimize algorithm arrange an array with items with even-indexs are on left side of array, items with odd-indexs are on right side of array Pin
Patrice T1-Dec-15 16:18
mvePatrice T1-Dec-15 16:18 
AnswerRe: Optimize algorithm arrange an array with items with even-indexs are on left side of array, items with odd-indexs are on right side of array Pin
Daniel Pfeffer1-Dec-15 21:54
professionalDaniel Pfeffer1-Dec-15 21:54 
AnswerRe: Optimize algorithm arrange an array with items with even-indexs are on left side of array, items with odd-indexs are on right side of array Pin
BillWoodruff5-Dec-15 20:31
professionalBillWoodruff5-Dec-15 20:31 
QuestionAssociation Rule Algorithm:dynamic god capabilities. Pin
shuga25-Nov-15 6:16
shuga25-Nov-15 6:16 
AnswerRe: Association Rule Algorithm:dynamic god capabilities. Pin
Patrice T28-Nov-15 10:05
mvePatrice T28-Nov-15 10:05 
GeneralRe: Association Rule Algorithm:dynamic god capabilities. Pin
shuga28-Nov-15 17:57
shuga28-Nov-15 17:57 
GeneralRe: Association Rule Algorithm:dynamic god capabilities. Pin
shuga28-Nov-15 17:57
shuga28-Nov-15 17:57 

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.