Click here to Skip to main content
15,881,803 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Base 36 value math problem Pin
Frankie-C7-May-15 2:07
Frankie-C7-May-15 2:07 
AnswerRe: Base 36 value math problem Pin
Patrice T17-Jun-15 18:37
mvePatrice T17-Jun-15 18:37 
GeneralRe: how does C4.5 work? Pin
PIEBALDconsult25-Apr-15 7:46
mvePIEBALDconsult25-Apr-15 7:46 
AnswerRe: how does C4.5 work? Pin
pt140125-Apr-15 8:39
pt140125-Apr-15 8:39 
AnswerRe: how does C4.5 work? Pin
Richard MacCutchan25-Apr-15 20:54
mveRichard MacCutchan25-Apr-15 20:54 
AnswerRe: how does C4.5 work? Pin
Kornfeld Eliyahu Peter25-Apr-15 21:01
professionalKornfeld Eliyahu Peter25-Apr-15 21:01 
AnswerRe: algorithm Pin
Sascha Lefèvre25-Apr-15 7:37
professionalSascha Lefèvre25-Apr-15 7:37 
Questionalgorithm Pin
Deepak Pundir17-Apr-15 9:10
Deepak Pundir17-Apr-15 9:10 
Can someone explain this question please

There are 2 types of tiles: Type 1: ** * Type 2: ** (where each star is a square block) Each tile can be rotated or flipped in all ways. There is a box with 2-by-n dimensions. So, for example, if n=10 then the box dimensions are 2 X 10 as shown below. ****** ****** You have infinite supplies of Type 1 and Type 2 tiles. You have to cover the box with the tiles that you have. You can use any number of type 1 tiles and type 2 tiles. You can choose to use all tiles of same type and none tiles of the other type. But you cannot overlap the tiles. Also, when you cover the box with tiles, none of the tiles should be out of the boundaries of the box, and no part of the box should be empty (no block shud be empty). The tiles should perfectly cover the box with no holes and no protrusions. Your task is to write a program in python that will count the number of different ways (configurations) in which u can cover the box with tiles. 2 cofigurations of covering a box are different if the type or orientation (or both) of any tile of those 2 configurations are different. To clarify things further, there are following configurations of the tiles: 1) ** 2) * * 3) ** * 4) ** * 5) * ** 6) * ** If there are 2 tiles in the configuration that are of same type and placed in same orientation, then if you swap the positions of these 2 tiles, it WILL NOT be counted as a different configuration because all tiles of same type and same orientation are identical. Write a program that will accept an input, n, and produce an output, the total number of different configurations to cover the box of dimensions 2 X n. Example: If n=2, output should be 2. Because 1 configuration could be 2 type-1 tiles placed vertically, and another configuration could be 2 type-1 tiles placed horizontally. If n=3, output should be 5
AnswerRe: algorithm Pin
Sascha Lefèvre17-Apr-15 9:48
professionalSascha Lefèvre17-Apr-15 9:48 
GeneralRe: algorithm Pin
harold aptroot17-Apr-15 9:54
harold aptroot17-Apr-15 9:54 
GeneralRe: algorithm Pin
PIEBALDconsult15-May-15 14:42
mvePIEBALDconsult15-May-15 14:42 
QuestionAlgorithm for finding the best “route” of tasks Pin
Nino Cotec2-Apr-15 5:50
Nino Cotec2-Apr-15 5:50 
AnswerRe: Algorithm for finding the best “route” of tasks Pin
Chris Losinger2-Apr-15 9:41
professionalChris Losinger2-Apr-15 9:41 
AnswerRe: Algorithm for finding the best “route” of tasks Pin
Patrice T25-Jun-15 8:44
mvePatrice T25-Jun-15 8:44 
QuestionCreate continuous path from multiple segments Pin
Member 115731191-Apr-15 3:38
Member 115731191-Apr-15 3:38 
AnswerRe: Create continuous path from multiple segments Pin
Frankie-C2-Apr-15 1:27
Frankie-C2-Apr-15 1:27 
GeneralRe: Create continuous path from multiple segments Pin
Member 115731192-Apr-15 6:47
Member 115731192-Apr-15 6:47 
GeneralRe: Create continuous path from multiple segments Pin
Frankie-C2-Apr-15 7:29
Frankie-C2-Apr-15 7:29 
GeneralRe: Create continuous path from multiple segments Pin
Member 115731192-Apr-15 7:34
Member 115731192-Apr-15 7:34 
AnswerRe: Create continuous path from multiple segments Pin
Patrice T28-Jun-15 16:58
mvePatrice T28-Jun-15 16:58 
QuestionECDSA FOR A NOOB Pin
Reversedme28-Mar-15 5:16
Reversedme28-Mar-15 5:16 
QuestionIs there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
prime_tang23-Mar-15 23:40
prime_tang23-Mar-15 23:40 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
harold aptroot24-Mar-15 1:16
harold aptroot24-Mar-15 1:16 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Patrice T30-Jun-15 14:41
mvePatrice T30-Jun-15 14:41 
QuestionUNION FIND Pin
Pratik Naik16-Mar-15 10:26
Pratik Naik16-Mar-15 10:26 

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.