Click here to Skip to main content
15,887,434 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
GeneralRe: Association Rule Algorithm:dynamic god capabilities. Pin
shuga28-Nov-15 17:57
shuga28-Nov-15 17:57 
QuestionHow do I solve the recurrence T(n) = T (n - 1) + c substitution method? Pin
axeemg17-Nov-15 4:12
axeemg17-Nov-15 4:12 
AnswerRe: How do I solve the recurrence T(n) = T (n - 1) + c substitution method? Pin
Patrice T17-Nov-15 17:53
mvePatrice T17-Nov-15 17:53 
QuestionAlgorithm query + request Pin
Member 1214387716-Nov-15 6:53
Member 1214387716-Nov-15 6:53 
AnswerRe: Algorithm query + request Pin
Chris Losinger16-Nov-15 7:01
professionalChris Losinger16-Nov-15 7:01 
AnswerRe: Algorithm query + request Pin
Patrice T17-Nov-15 18:00
mvePatrice T17-Nov-15 18:00 
GeneralHash table load factor Pin
Member 1180386012-Nov-15 13:04
Member 1180386012-Nov-15 13:04 

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.