Click here to Skip to main content
15,905,614 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 
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 
I don't know if there is a general solution, but using swaps I have come up with:

N = 2 requires 0 swaps (obviously)
N = 4 requires 1 swap
N = 6 requires 3 swaps
N = 4 requires 4 swaps
N = 10 requires 6 swaps
...

Basically, moving the N/2 first elements of the pairs to the beginning requires N/2-1 swaps. The N/2 second elements are "nearly" in order, requiring only a few additional swaps.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.

--Winston Churchill

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.