15,393,050 members
Home / Discussions / Algorithms

# Algorithms

 Re: Base 36 value math problem Frankie-C7-May-15 2:07 Frankie-C 7-May-15 2:07
 Re: Base 36 value math problem Patrice T17-Jun-15 18:37 Patrice T 17-Jun-15 18:37
 Re: how does C4.5 work? PIEBALDconsult25-Apr-15 7:46 PIEBALDconsult 25-Apr-15 7:46
 Re: how does C4.5 work? pt140125-Apr-15 8:39 pt1401 25-Apr-15 8:39
 Re: how does C4.5 work? Richard MacCutchan25-Apr-15 20:54 Richard MacCutchan 25-Apr-15 20:54
 Re: how does C4.5 work? Kornfeld Eliyahu Peter25-Apr-15 21:01 Kornfeld Eliyahu Peter 25-Apr-15 21:01
 Re: algorithm Sascha Lefèvre25-Apr-15 7:37 Sascha Lefèvre 25-Apr-15 7:37
 algorithm Deepak Pundir17-Apr-15 9:10 Deepak Pundir 17-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
 Re: algorithm Sascha Lefèvre17-Apr-15 9:48 Sascha Lefèvre 17-Apr-15 9:48
 Re: algorithm harold aptroot17-Apr-15 9:54 harold aptroot 17-Apr-15 9:54
 Re: algorithm PIEBALDconsult15-May-15 14:42 PIEBALDconsult 15-May-15 14:42
 Algorithm for finding the best “route” of tasks Nino Cotec2-Apr-15 5:50 Nino Cotec 2-Apr-15 5:50
 Re: Algorithm for finding the best “route” of tasks Chris Losinger2-Apr-15 9:41 Chris Losinger 2-Apr-15 9:41
 Re: Algorithm for finding the best “route” of tasks Patrice T25-Jun-15 8:44 Patrice T 25-Jun-15 8:44
 Create continuous path from multiple segments Member 115731191-Apr-15 3:38 Member 11573119 1-Apr-15 3:38
 Re: Create continuous path from multiple segments Frankie-C2-Apr-15 1:27 Frankie-C 2-Apr-15 1:27
 Re: Create continuous path from multiple segments Member 115731192-Apr-15 6:47 Member 11573119 2-Apr-15 6:47
 Re: Create continuous path from multiple segments Frankie-C2-Apr-15 7:29 Frankie-C 2-Apr-15 7:29
 Re: Create continuous path from multiple segments Member 115731192-Apr-15 7:34 Member 11573119 2-Apr-15 7:34
 Re: Create continuous path from multiple segments Patrice T28-Jun-15 16:58 Patrice T 28-Jun-15 16:58
 ECDSA FOR A NOOB Reversedme28-Mar-15 5:16 Reversedme 28-Mar-15 5:16
 Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? prime_tang23-Mar-15 23:40 prime_tang 23-Mar-15 23:40
 Re: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? harold aptroot24-Mar-15 1:16 harold aptroot 24-Mar-15 1:16
 Re: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Patrice T30-Jun-15 14:41 Patrice T 30-Jun-15 14:41
 UNION FIND Pratik Naik16-Mar-15 10:26 Pratik Naik 16-Mar-15 10:26
 Last Visit: 31-Dec-99 18:00     Last Update: 11-Aug-22 16:01 Refresh ᐊ Prev1...44454647484950515253 Next ᐅ