All posts by date
King's Wish
A K by K grid has to be tiled with L by W tiles which can be taken vertically or horizontally. Given K find L, W such that this tiling is possible and (max(L,W)-min(L,W), L+W) is lexicographically maximal subject to W < L < K. All numbers are positive integers.
Mirror maze
Given a grid with two openings and two sided mirrors in some grid cells, find an orientation for the mirrors at 45 or -45 degrees, such that a laser beam entering one opening would be reflected all the way to the second opening.
The bridge and torch puzzle
There are n persons that all have to cross a bridge, using a single torch. Person i takes \( t_i \) minutes to cross the bridge. At most 2 persons can walk on the bridge at the same time and need to carry the torch with them. If persons i and j cross together their crossing time is \( \max{ t_i, t_j } \). Minimize the total crossing time.
Meeting july 2016
café Fluctuat Nec Mergitur, July 9th, 2016, 9:00
Determine the shape
Given 4 points, place them in clockwise order and determine the shape formed by these points: square, rectangle, rhombus, parallelogram, trapezium or ordinary quadrilateral.
Weird Advertisement
You are given \( n \) rectilinear rectangles and a threshold \( k \), and want to find out the total area covered by at least \( k \) rectangles.
Union of rectangles
You are given $n$ rectilinear rectangles and want to find out the total area covered by their union.
Segment tree
Maintain a numerical table that implements the following operations in logarithmic time: query the entry at some index, add a value to all entries between two given indices.
Bitonic shortest path
Given a graph with edge weights and vertex heights find a shortest path from a given source to a given destination, that traverses vertices of first increasing and then decreasing heights.
Rectangles stacking order
Given a picture of overlaying rectilinear rectangles, detect which rectangle is above which one.
Longest path in a tree
Find a longest path in a tree.
Joining with friends
Some easy geometry problem.
Edges expiring
Given a graph with expiring dates for every edge, when will the graph be disconnected?
Update Sep 28, 2024. This can also be solved as a binary search for the answer.
Divide the land
Divide a trapezoid into two halfs of same area.
Disc obstacles
Find a shortest path in the plane between two points avoiding given obstacles with disc shapes.
Corner the queens
Two players move in turns a queen on a chessboard, either left, down or diagonally left-down. The first player to reach the lower left corner wins. For what initial positions is the starting player sure to win?
Halum
Apply some operations on arcs to make vertex weights non-negative.
Arbres de Merkle, P2P, Bitcoin et Git
Par JJV.
Sous-modularité
Par Guillaume Aubian.
Réduction de réseaux par l'algorithme LLL
Par Thomas Espitau.