write a program to solve jigsaw puzzles.

You are to write a program to solve jigsaw puzzles. The input file will contain the dimension of the puzzle, the dimension of the pieces, and
the actual pieces of the puzzle. The pieces will be made up of ASCII characters. You are to create an output file which consists of the
solved puzzle.
Input
Input file consists of one or more puzzles. The first line contains a integer N, the number of puzzles. Then, the description of each puzzle, as
follows:
The first line of the input file will contain three integers. These are the dimension of the puzzle (puzzles are always square), and the height
and width of the pieces, respectively. The dimension of the puzzle can range from 2 to 10, and the height and width of each puzzle piece
can range from 1 to 25. For example, the input “2 2 3” (without the quotes, of course) specifies a puzzle that is pieces in size, with
individual pieces that are characters in size. All pieces have the same height and width.
The rest of the description specifies the puzzle pieces in arbitrary order. Each piece is specified by an image of the piece followed by a line
containing four integers ranging from -5 to +5. These values indicate the shape of the top, left, bottom and right edges of the puzzle piece,
respectively. Values of 0 identify straight (i.e. outer) edges. Positive and negative edges of the same value are pairs that interlock (e.g -5
interlocks with +5, -4 with +4, etc.). Puzzle pieces may not be rotated, and all pieces will be unique (that is, no two pieces will have the
same values for all four edges). A blank line separates each puzzle piece, and also different puzzles.
Note that spaces (ASCII character 32) are valid characters in a puzzle piece. If they appear at the end of a line (or are the only characters on
a line), then they . All pieces will be a rectangular block of characters (ASCII codes 32 to 127), even if spaces at the end of a line make it
appear differently. In short, spaces should be treated no differently than any other character.

find the cost of your paper

What is the work required in the first compressor per kg of propane?

Propane is to be compressed from 0.4 MPa and 360 K to 4 MPa using a two-stage compressor. An interstage cooler returns the temperature of the propane to 360 K….

Did the modified or the unmodified mice learn the location of the platform faster in the first test?

The FOXP2 gene encodes a transcription factor associated with vocal learning in mice, bats, birds, and humans. In humans, loss-ofDigging Into Data Enhanced Spatial Learning Ability in Mice with an….

What is the major difference between the IEEE 802.11b WLAN and the IEEE 802.11g WLAN?

What is the major difference between the IEEE 802.11b WLAN and the IEEE 802.11g WLAN?  What does gated service mean in a token-passing network?  Which node is responsible for removing….