Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 90344

An algorithm is a sequence of well-defined steps that defines an abstract solution to a problem. Use this tag when your issue is related to design and analysis of algorithms.

12 votes

Inverting a band matrix

Since none of the comments gave the concrete answer, I'll write it explicitly here in case anyone needs it (like I did). Firstly, unfortunately, the inverse of a band-limited matrix is a full (non-ba …
chausies's user avatar
  • 542
2 votes

Sorting from independently chosen comparisons

I think I have a solution. It's totally symmetric with no coordination. Each arbiter runs the following algorithm to choose their comparisons. First, they consider evenly dividing n into k "sections" …
chausies's user avatar
  • 542
2 votes

What is a sorting algorithm that is robust to a faulty comparison?

I think I've thought up a solution. First, do a first pass with any decent sorting algorithm you want (like quicksort), which should, at worst, result in only one item that's significantly far from wh …
chausies's user avatar
  • 542
4 votes
3 answers
244 views

What is a sorting algorithm that is robust to a faulty comparison?

I want to sort a list of n items with a comparison sort. However, one of the comparisons made by the algorithm will be flipped from what it's supposed to be. Specifically, there is one pair of items f …
chausies's user avatar
  • 542
2 votes
2 answers
50 views

Sorting from independently chosen comparisons

I want to sort a list of n items from pairwise comparisons. Each round, I receive k comparisons, one each from k different "arbiters". The arbiters cannot coordinate, and must choose their comparisons …
chausies's user avatar
  • 542
1 vote
1 answer
57 views

Given a list of comparisons, sort items with as few additional comparisons as possible

You have n items x[0], ..., x[n-1]. Beforehand, you're given a list of several comparisons c[0], ..., c[k] for those items (e.g. c[0] = (x[0] < x[4]), c[1] = (x[3] > x[7]), etc.). The objective is to …
chausies's user avatar
  • 542
1 vote
1 answer
96 views

Sorting a list over rounds of binary comparisons

You have a list of $n$ items you want to sort over $r$ rounds using binary comparisons. In each round, you specify $k$ binary comparisons to be made in parallel. The objective is to fully sort the lis …
chausies's user avatar
  • 542
3 votes
0 answers
43 views

TSP algorithm with a good run-time based on properties of the graph (not just based on numbe...

Are there any TSP algorithms with decently efficient run-times given in terms of these alternative metrics for the graph "size"? Approximate algorithms are fine too, I think. …
chausies's user avatar
  • 542
1 vote
1 answer
206 views

Finding shortest path between two points in a polygon whose vertices are given?

A contiguous single polygon is specified by it's vertices $(v_1, \ldots, v_n)$, given in order such that the line between $v_i$ and $v_{i+1}$ is an edge of the polygon (there's also an edge between $v …
chausies's user avatar
  • 542
2 votes
0 answers
26 views

Windowed LogLog/HyperLogLog algorithm to get a count of the cardinality of the set of the la...

LogLog/HyperLogLog provides a great way for estimating the cardinality of the set of $n$ objects. At its simplest, you hash all $n$ objects into binary strings, find the largest number of leading 0's …
chausies's user avatar
  • 542