Exercises
Multiple Choice
Articles
Open Problems
Login
Search
Sort By:
trending ▼
date
0
Graduate
By
domotorp
on June 6, 2012 | Updated Dec. 6, 2017
Read Once Promised Majority
Suppose the input is \(n\) numbers from \(1\) to \(n\), separated by commas and we know that one of the number occurs more than \(n/2\) times. How can we decide which if we can read the input tape onl…
Computer Science
Puzzles
Complexity Theory
Puzzles
read once
0
Undergraduate
By
diego
on June 8, 2012 | Updated Dec. 6, 2017
The cube of a connected graph is hamiltonian
Prove that the vertices of any connected graph \(G\) can be listed in a cyclic order so that the distance in \(G\) of every two consecutive vertices is at most \(3\). Moreover, show that this can be …
Computer Science
Mathematics
Algorithms
Graph Theory
hamiltonian cycle
0
Undergraduate
By
diego
on June 27, 2012 | Updated Dec. 6, 2017
Unmatchable edges of bipartite graphs
Prove that the following algorithm finds the unmatchable edges of a bipartite graph \(G\) (edges that aren't in any perfect matching): find a perfect matching in \(G\), orient the unmatched edges from…
Mathematics
Graph Theory
bipartite graph
matching
0
Undergraduate
By
Chandra Chekuri
on July 29, 2012 | Updated Dec. 6, 2017
Diameter and low-degree vertex
Let \(G = (V,E)\) be an undirected connected graph. Suppose \(G\) has a pair of nodes \(s,t\) that are distance \(d\) apart. Show that there is a vertex \(v\in G\) such that the degree of \(v\) is at…
Computer Science
Mathematics
Algorithms
Graph Theory
counting
0
Undergraduate
By
JeffE
on June 7, 2012 | Updated Dec. 6, 2017
Maintaining fitstrings
Every non-negative integer can be represented as the sum of distinct positive Fibonacci numbers. (As a warmup exercise, prove this claim!) In other words, instead of a string of bits, we can represe…
Computer Science
Algorithms
amortized analysis
0
Undergraduate
By
domotorp
on June 11, 2012 | Updated Dec. 6, 2017
Non-double words form a context-free language
Define double words whose first and second half is the same, e.g. baba or aaaa but not abba, bab or bababa. Prove that over a finite alphabet the language of non-double words is context-free. (Context…
Computer Science
Complexity Theory
formal languages
0
High School
By
Shiva Kintali
on June 6, 2014 | Updated Jan. 4, 2018
Constructible polygons
A constructible polygon is a regular polygon that can be constructed with compass and straightedge. For example, a regular pentagon is constructible with compass and straightedge while a regular hepta…
Mathematics
Geometry
polygon
0
High School
By
Shiva Kintali
on Oct. 21, 2014 | Updated Jan. 4, 2018
Farmers and Chickens
Three farmers were selling chickens at the local market. One farmer had 10 chickens to sell, another had 16 chickens to sell, and the last had 26 chickens to sell. In order not to compete with each …
Mathematics
Mathematics
linear equations
0
Undergraduate
By
Shiva Kintali
on May 19, 2013 | Updated Dec. 6, 2017
Counting intersections of chords
Consider \(n\) chords on a circle, each defined by its endpoints. Describe an \(O(n{\log}n)\)-time algorithm to determine the number of pairs of chords that intersect inside the circle. For example, i…
Computer Science
Algorithms
Data Structures
counting
sorting
0
Undergraduate
By
Shiva Kintali
on May 21, 2014 | Updated Jan. 4, 2018
99 fair coins
Person \(A\) flips 99 fair coins and obtains \(a\) heads. Person \(B\) flips 100 fair coins and obtains \(b\) heads. What is the probability that \(a < b\) ?
Mathematics
Probability
conditional probability
interview question
« previous
1
2
3
4
...
24
25
26
next page »
icon
Sign In or Sign Up
icon
Invite Friends
Post Something
x
Select What You'd Like To Post
POST AN ARTICLE
POST AN OPEN PROBLEM
POST AN EXERCISE
POST A MULTIPLE-CHOICE QUESTION
Content Types
Articles
Open Problems
Exercises
Multiple-Choice Questions
Levels
High school
Undergraduate
Graduate
Subjects
Mathematics
Computer Science
Puzzles
Optimization
Trending tags
chordal graph
asymptotic analysis
volume
circle
jee
jee main
imo
imo 2016
polygon
jee 2016
Topics
Algebra
Algorithms
Approximation Algorithms
Calculus
Combinatorial Optimization
Combinatorics
Complexity Theory
Data Structures
Discrete Mathematics
Game Theory
Geometry
Graph Theory
Linear Algebra
Linear Programming
Logic
Mathematical Analysis
Mathematics
Matrix Theory
Number Theory
Optimization
Probability
Programming
Puzzles
Randomized Algorithms
Real Analysis
Trigonometry
×