[algogeeks] SAT

2007-03-19 Thread Ez_Alg
how can we show that MAX SAT (: Given a CNF formula and an integer g, find a truth assignment that satisfies at least g clauses.) , SPARSE SUBGRAPH (: Given a graph and two integers a and b, find a set of a vertices of G such that there are at most b edges between them.) can be reduced to 3SAT? do

[algogeeks] Re: Sorting o(n) time

2007-03-19 Thread k3xji
Hi all, Quoted from Wikipedia: >Pigeonhole sorting, also known as count sort, is a sorting algorithm that >takes linear time (Θ(n)), which is the best possible performance for a sorting >algorithm since >one must inevitably look at each of the elements being sorted >at least once, regardless o