Skip to main content

All Questions

0 votes
0 answers
35 views

Minimum number of measurements required to find heaviest and lightest from a group of idetntical looking balls having distinct weights.

You are given 68 identical looking balls, each with a distinct weight. You are given a common balance using which you can compare weights of any two pair of balls with a single measurement. Describe ...
Arvind H's user avatar
0 votes
0 answers
30 views

Constructing an 8x8 Table with Unique Row Patterns and Consistent Prefix-Suffix Combinations

I am looking to create an 8x8 table with specific properties related to prefix and suffix combinations. Each cell in the table represents a combination of a prefix (rows) and a suffix (columns), ...
Coping Forever's user avatar
2 votes
0 answers
73 views

Bin packing : item to be packed in a certain bin depend on previously packed items to that bin.

I am working on an engineering problem. I need to implement an algorithm that looks like a certain variant of bin packing. Specifically, in this variant of the bin packing, the size of a certain item ...
Mazen Ezzeddine's user avatar
15 votes
0 answers
271 views

Recovering a binary function on a lattice by studying its sum along closed paths

I have a binary function $f:\mathbb N^2\rightarrow\{0,1\}$. While I do not known $f$ explicitly, I have a "device" located at the origin $(1,1)$ which can do the following: Given an even ...
GSofer's user avatar
  • 4,323
2 votes
0 answers
87 views

Finding all possible valid values of a set based on a list of rules.

I'm working on a programming project and I stumbled into a bit of a problem. I think it's not an impossible problem, but I'm guessing it would involve some math. It would be amazing if anyone can ...
Typhaon's user avatar
  • 121
3 votes
1 answer
97 views

Expected Length of Maximum Decreasing Subsequences in Random Sequences

Given $ n $ distinct numbers that are randomly shuffled to form a sequence $ A = [a_1, a_2, \ldots, a_n] $, we select the largest number $ x_1 $ from the sequence. Subsequently, we pick the largest ...
maplemaple's user avatar
  • 1,231
2 votes
2 answers
84 views

Analytic solution for number of paths with length $k$ on an $n \times n$ Chessboard allowing Self-Intersecting?

Consider an $n \times n$ chessboard where the journey begins at the bottom-left corner $(1, 1)$ and concludes at the top-right corner $(n, n)$. How many distinct paths are available that necessitate ...
maplemaple's user avatar
  • 1,231
4 votes
1 answer
283 views

Printing neatly

I'm working on the following problem (which is not my actual question) Consider the problem of neatly printing a paragraph with a monospaced font (all characters having the same width). The input ...
C.C.'s user avatar
  • 910
3 votes
1 answer
115 views

Social golfer problem with additional requirement

I need to write a program that sorts people into groups. To give a little context: The aim of the program is to create an equitable distribution of tasks and people for a school trip. Every day the ...
Meister der Magie's user avatar
1 vote
1 answer
54 views

All cliques of a graph

Given an arbitrary undirected graph $G$ with $n$ vertices, I am interested in counting the number of cliques. (For example, the number of cliques of a complete graph $K_n$ is trivially $2^n-1$;the ...
user1116616's user avatar
0 votes
1 answer
40 views

Is the stable marriage problem defined for $0$ people?

When proving properties of algorithms which are supposed to solve the stable marriage problem, I find myself unable to prove them sometimes in the case of there being $0$ things to pair with each ...
Princess Mia's user avatar
  • 2,979
2 votes
1 answer
139 views

HMMT 2014 #9, how many times has Lucky performed the procedure when there are 20 tails-up coins?

There is a heads up coin on every integer of the number line. Lucky is initially standing on the zero point of the number line facing in the positive direction. Lucky performs the following procedure: ...
user33096's user avatar
  • 2,031
1 vote
2 answers
71 views

Marching cubes generates surface triangles. How to adapt it to generate tetrahedra throughout the volume of a 3D model?

Background There is a source code that generates surface triangles. The isosurface is generated for the iso-value of 0. The source code uses a table for ...
Megidd's user avatar
  • 271
0 votes
0 answers
50 views

Difficulty in decoding the Prufer code.

I was looking at the proof of the following result: Let $n\geq 2$,the number of spanning trees in the complete graph $K_n$ is $n^{n-2}$. The proof uses a bijection between $T$ ,the set of all ...
Kishalay Sarkar's user avatar
7 votes
1 answer
126 views

In this checkerboard problem, is there a way to tell if any two situations are equivalent?

There is an infinite square grid chessboard with chess pieces placed on certain squares. There is at most one piece in a grid. We can perform the following operations each time: Split: Select a chess ...
Aly_'s user avatar
  • 71

15 30 50 per page
1
2 3 4 5
7