Click here to Skip to main content
15,898,893 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Compress items of size based on width and height [Modified] Pin
Maciej Los27-Sep-16 21:41
mveMaciej Los27-Sep-16 21:41 
GeneralRe: Compress items of size based on width and height [Modified] Pin
jkirkerx28-Sep-16 6:36
professionaljkirkerx28-Sep-16 6:36 
GeneralThis is what I released today for production testing Pin
jkirkerx30-Sep-16 7:26
professionaljkirkerx30-Sep-16 7:26 
GeneralRe: This is what I released today for production testing Pin
Maciej Los4-Oct-16 9:22
mveMaciej Los4-Oct-16 9:22 
GeneralRe: This is what I released today for production testing Pin
jkirkerx4-Oct-16 9:30
professionaljkirkerx4-Oct-16 9:30 
GeneralRe: This is what I released today for production testing Pin
Maciej Los4-Oct-16 9:34
mveMaciej Los4-Oct-16 9:34 
GeneralRe: This is what I released today for production testing Pin
jkirkerx4-Oct-16 9:37
professionaljkirkerx4-Oct-16 9:37 
QuestionJoin lines text file using binary difference Pin
muttleychess1-Sep-16 5:34
muttleychess1-Sep-16 5:34 
Hi
I have a textfile and need to build a algorithm join lines

The lines have 14 characters that can be
1,2,3,4,5,6,or 7
Example
44444444444444

This numbers represent bit representation,
1= 001
2=010
3=011
4=100
5=101
6=110
7=111
For to join line I must to observe if two (or more) line have 1 or 2 characters differente then to XOR between characters
Example
Line 01=> 11122444444444
line 02==>12142444444444
First character each line is 1 zero different
Second character first line is 1 and second is 2 then 1 different
Same to 4th character (2 and 4), The others are equal.
due to having only two differences I DO a XOR bits

Second character
1 xor 2 ==> 3
001 xor 010 ==> 011

4th character
2 xor 4 ==> 6
010 or 100 ==> 110

I need build best algorithm to join lines with rules

1)I can have more than two lines being used
2) Each line can have a maximum 1 or 2 , character 7 (parameterized) after join

3) each line used in another must, can not be used more

Somebody know how can I to build a recursive algorithm ?

Tia
AnswerRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 6:13
mveGerry Schmitz1-Sep-16 6:13 
GeneralRe: Join lines text file using binary difference Pin
muttleychess1-Sep-16 6:38
muttleychess1-Sep-16 6:38 
GeneralRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 6:50
mveGerry Schmitz1-Sep-16 6:50 
GeneralRe: Join lines text file using binary difference Pin
muttleychess1-Sep-16 7:49
muttleychess1-Sep-16 7:49 
GeneralRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 8:43
mveGerry Schmitz1-Sep-16 8:43 
QuestionConsesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 1:40
Member 1270735628-Aug-16 1:40 
AnswerRe: Consesus algorithms Raft and Paxos comparison question Pin
Richard MacCutchan28-Aug-16 1:45
mveRichard MacCutchan28-Aug-16 1:45 
GeneralRe: Consesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 3:14
Member 1270735628-Aug-16 3:14 
QuestionTranslating this flowchart into pseudocode Pin
Ambus Dondon26-Aug-16 18:47
Ambus Dondon26-Aug-16 18:47 
AnswerRe: Translating this flowchart into pseudocode Pin
Peter_in_278026-Aug-16 21:56
professionalPeter_in_278026-Aug-16 21:56 
GeneralRe: Translating this flowchart into pseudocode Pin
Ambus Dondon27-Aug-16 1:13
Ambus Dondon27-Aug-16 1:13 
SuggestionRe: Translating this flowchart into pseudocode Pin
enhzflep27-Aug-16 1:48
enhzflep27-Aug-16 1:48 
GeneralRe: Translating this flowchart into pseudocode Pin
Ambus Dondon27-Aug-16 2:15
Ambus Dondon27-Aug-16 2:15 
GeneralRe: Translating this flowchart into pseudocode Pin
enhzflep27-Aug-16 4:11
enhzflep27-Aug-16 4:11 
AnswerRe: Translating this flowchart into pseudocode Pin
Patrice T27-Aug-16 4:53
mvePatrice T27-Aug-16 4:53 
GeneralRe: Translating this flowchart into pseudocode Pin
Ambus Dondon27-Aug-16 14:27
Ambus Dondon27-Aug-16 14:27 
QuestionData Structures and Algorithm Pin
Chayan Mehta26-Aug-16 5:21
Chayan Mehta26-Aug-16 5:21 

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.