# Holes in the Table

I was asked this question in an interview and though I was able to answer a part or few parts I'm not really sure if what I gave was the optimal answer. So here goes the puzzle:

A restaurant owner asked a Carpenter to make tables for him out of certain number of wooden blocks and boards. There are only a limited number of boards. He was asked to make a rectangular hole right in the middle of the table so that the owner would be able to embed the restaurant logo in it. The Carpenter was a drunk and while working on the last table (and last wooden board) he had to make, be made a blunder. He made the rectangular hole way off the center.

The restaurant owner fired him on the spot.

He then goes ahead and hires you, an inexperienced Carpenter, with a promise that if you could fix the blunder caused by the last Carpenter, you would get a huge contract for all the wood work needed for the rest of his establishments. This would be huge for you are completely broke right now.

1. How would you solve the problem?
2. How would you solve the problem if the hole made was made at a 45 degree angle and needs to be corrected as well?

1. How would you solve the problem if both the table and the hole were oval in shape?

Rules:

Since you are inexperienced and an amateur and you only have a hacksaw, you can only start cutting along the outside edges of the table.

For 1. You can only make two cuts as otherwise it would ruin the look of the table.

EDIT:

The table has to be the same size as the rest of the tables. The size of the table is specified by the owner.

Need to give the most optimal solution and if possible prove it's optimality. Optimal solution will have the minimal cumulative length of the cuts

• possible duplicate of Dissection Puzzle - The Umbrella Stand Commented May 18, 2015 at 11:46
• Does the rectangular hole have to share the orientation of the table, or can it be 90 degrees off? Commented May 18, 2015 at 11:51
• I thought it was a duplicate of the Umbrella Stand but then you said you can only have 2 cuts for the first one. That makes it different enough when added to the other two portions of the puzzle. Commented May 18, 2015 at 13:02
• @DippedBits: Can you clarify if the cuts have to be straight cuts, i.e. if a change of cutting direction counts as 'new' cut or not? Commented May 18, 2015 at 13:07
• These are very small tables or that's one big hacksaw you got there. Step one would have to be removing the blade from the arbor. If you just want to disallow plunge cuts or curves, try a carpenter's saw. Commented May 19, 2015 at 12:15

For part 1:

Measure the table's edges, and determine the mid-points. Measure the x and y distance from the centre of the hole (contrary to the image - got that wrong) to the edges of the table. Measure the same distances from the centre point. Cut to this second point (i.e. along the black lines), and then rotate the section that you've cut out by 180 degrees.

For part 2:

This one's actually not too hard to do, but difficult to explain - in essence, you can cut material equal to the hole in size from the middle, and place it where the actual hole is. See the diagram (and assume the central shape is the same size as the hole, please!) - if done in the correct order, all cuts are cuts from the edge

A potential cutting order is now included (edit: only cuts 1,2,3 and 4 needed). Once done, place the rectangle bounded by 1,2,3,4 in the hole bounded by 6,7,8,9

For part 3:

Much as for part 1, this involves cutting a rectangle that includes the hole and its distance from the edge. Measure the x and y co-ordinates of the centre of the board, and the x and y distances from the centre of the hole to a point on the outer edge of the ellipse. Measure those same distances from the centre of the board.
Cut out (see black lines) the rectangle described by these two points and the x and y planes.
You will need to cut two extra lines to allow you to cut the whole shape free, as you can only cut from the outside.
Then rotate the rectangle by 180 degrees, replace it, and return the other two removed segments to complete the table

• Again the solution is correct but not optimal. Commented May 18, 2015 at 10:44
• For part 1 or 2? Commented May 18, 2015 at 10:49
• Part 1, for part two how would you cut the center portion with just a hacksaw? Commented May 18, 2015 at 10:51
• With great difficulty, much cursing, and several snapped blades Commented May 18, 2015 at 11:50
• For part two, why do you still need cuts 5-9? Once you have the piece bounded by 1, 2, 3 & 4, can't you just insert it into the hole? Commented May 19, 2015 at 16:34

One cut solution for #3.

Cut and turn the green part for 180deg. (Orange - original hole position)

• Nice idea, but don't think it would work with a Hacksaw. Commented May 19, 2015 at 3:12
• I don't want to be mean... What exactly do you understand as Hacksaw? I find only this and none of the solutions here is possible with this saw. Commented May 19, 2015 at 14:20
• @DippedBits a hacksaw is the correct tool for cutting an arch.
– Carl
Commented Feb 15, 2016 at 18:31

I thought @LogicianWithAHat has answered the question quite neatly.

I think Q2 could be solved like this (it is not to scale, but you get the idea):

Put the triangle on top of the triangle with hole and the trapezium to the left.

• Basically invert the two triangles! I like the idea! +1 Commented May 18, 2015 at 14:17
• Nice idea. Have to say didn't think of it Myself. There is just one problem. The resulting hole would be in the center but rotated 90 degrees. It's still fine as I did not specify the actual orientation it needs to be in finally, just rotated by 45 degress. +1 Commented May 19, 2015 at 3:04

I think people covered this, but I'll give it a shot for part one and two.

Part 1:

Start a cut from the top of the table, to the left of center by the distance from the current hole to the right edge of the board, and cut until you're at the center of the board, plus the distance from the current hole top edge to the top edge of the board. Continue cutting all the way to the right. Take out the piece you cut, flip over the x and y-axes, and reinsert. Summary: Make one L-shaped cut, rotate the cut out rectangle by 180 degrees, and re-insert.

Part 2:

Make one circular cut starting at the top of the board above the current hole (so that the rectangular hole is encompassed within a circle, and that circle's radius extends to the edges of the current board. Next, make essentially the same cut as in Part 1 so that you can rotate a large section of the board, and re-insert the circular cut out in the center, rotating it by 45 degrees. Summary: Make a circular cut around the hole, and an L-shaped cut across the majority of the board. Rotate L-shaped cut by 180 degrees, circular cut by 45 degrees, and re-insert.

Sorry for the crappy quality, I can't photoshop.

I have no idea about Part 3.

EDIT: As a comment to the question (since I don't have the privilege yet)--I was interpreting the third part to mean that you are given an ovular table with an ovular hole and still have to accomplish the same objective of turning it into a rectangular table with a rectangular hole; yet the #1 upvoted answer right now (for the part 3 solution) seems to interpret as- just get the ovular hole into the center of the ovular table (which is much easier IMO). Can anyone clarify what the objective for part 3 is?

Assuming I can cut more than twice for 2 and 3

For 1

Make two cuts so the hole is in the middle of the smaller piece cut out of the original table, the table will be smaller, but seeing that the owner never specified how large the table had to be you can just cut it like that.

For 2

Do the same as in 1 but make more cuts to get the desired result.

For 3

Dot the same as in 1 and 2 but make it a round cut so it retains the shape.

You could use the remaining pieces of wood to craft equal tables in shape just different in size.

• Wow that never occurred to me that you could make a smaller table, lol. But I believe it is a given that the table has to the same size as the others and a specific size. +1 for thinking outside the box though. Will make an edit to specify that. Commented May 18, 2015 at 9:20
• Haha thx :-) but don't say +1 here, give me a +1 on the answer ;-) Commented May 18, 2015 at 9:35
• I'll give you one instead Commented May 18, 2015 at 9:52
• @Wouter : Sorry I can't yet, not enough rep, but will do it when i can. Well I see someone already gave you a +1 for that. Commented May 18, 2015 at 9:54
• haha thx :D I appreciate it :-) Commented May 18, 2015 at 9:59

Even if I cannot prove, this looks pretty much optimal:

same for 2 and 3.

I'm not sure if that can be made with an hacksaw: it probably doesn't like the sharp bends. To avoid them we could go for something like this, which is obviously suboptimal, but still possibly better than other solutions (depends on the size and on the initial placement of the hole).

To start cutting around the hole I assume that it is possible to insert the hacksaw in the hole, otherwise it should look pretty much as the other cut.

• Yup, pretty much. With the puzzle's requirement that you must start cutting from the outside of the table, I don't see how you can do better than this for any of the three parts. Commented May 18, 2015 at 11:29
• Still the question states that the first must be done with only 2 cuts, this is a solution with 4 Commented May 18, 2015 at 11:51
• @Wouter you say they are 4? I say it is only 1! Commented May 18, 2015 at 11:52
• @DarioP : And how exactly can u make such cuts in the middle of the board with an Hacksaw? Commented May 19, 2015 at 3:06
• @DippedBits since I am confident that my solution is optimal and will win over all the others guaranteeing me the huge contract, I buy a laser cutting tool that will make the work much faster and more precise. With the stupid hacksaw the cut will be wobbly, the result awful, and I would be fired anyway. Commented May 19, 2015 at 6:56

(On mobile right now, so I can't validate my answer or draw pretty pictures)

Assuming your amateur skills extend to joinery, you could, for the first:

cut a thick L shaped section off from the lower left, leaving a kind of smaller version of the table/hole, the rotate the L and reattach it to the other side (you'd just have to do the maths to make sure the amount you removed plus the amount on the far side of the hole equaled the amount that remained on the near side).

For the second (edited):

a similar approach could be used, but first you need to cut on a 45 degree diagonal (parallel to the hole), starting at the bottom right corner such that you come in the same distance as the short edge. Then turn 90 degrees to the right and finish the cut. This will produce a kite shape which can be flipped over, effectively rotating the hole by 45 (your two cuts were parallel to the hole, with the first cut becoming the new short edge). Now you've effectively got a table like in number one, with the hole the correct angle, but off center, so we just repeat those steps.

For the third:

Not 100% sure on this one, because it feels like you'd struggle to maintain the appropriate curve, but you could possibly repeat the same process, only this time initially cutting a crescent shape section from the bottom left.

• Not the most optimal solution for the first but will give +1 for that. Not sure you got the Second one though. Commented May 18, 2015 at 10:05
• @DippedBits - I've edited in an updated 2nd option that should work (I think... Still on mobile, so it's all a mental exercise). Commented May 18, 2015 at 12:05

# 3 is simple assuming an L cut is one cut.

• Welcome to Puzzling! This one's already been solved, and your diagram is only two cuts. This is a nice solution though, and different from the accepted one - hope to see you around here more!
– Deusovi
Commented Feb 14, 2016 at 6:46