[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Sorting with only a partial order definition
From: Toby Dickenson <tdickenson () devmail ! geminidataloggers ! co ! uk>
Date: 2005-10-27 10:32:32
Message-ID: 200510271132.32831.tdickenson () devmail ! geminidataloggers ! co ! uk
[Download RAW message or body]
On Thursday 27 October 2005 11:08, Lasse Vågsæther Karlsen wrote:
> What I was wondering about is if there is an algorithm that would do
> what I want? Ie. help me pick the nodes so as to minimize the number of
> edges.
To rephrase your question, you want a sorting algorithm that minimises the
number of comparisons (because a comparison involves asking a human), and
which takes advantage of any pre-existing rough ordering.
You need timsort - the algorithm behind python lists sort() method.
--
Toby Dickenson
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic