<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Algorithms Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'Algorithms' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Mon, 01 Dec 2008 20:37:53 -0700</pubDate>
    <lastBuildDate>Mon, 01 Dec 2008 20:37:53 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>5k+1 array</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/382381/382381/5k+1-array/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
 is there any linear time algorithm to solve this problem?&lt;br /&gt;
&lt;br /&gt;
 An array of length 5k+1 having k+1 distinct elements with k elements repeating 5 times each. The goal is to find the element which doesn't repeat.&lt;br /&gt;
Can we do this in linear time?&lt;br /&gt;
&lt;br /&gt;
 O(nlogn) algorithm is to sort the array using any of the standard sorting algorithms and then just find this element. Is there a linear time algo for this?&lt;br /&gt;
&lt;br /&gt;
 Thanks.</description>
      <pubDate>Sun, 30 Nov 2008 13:51:29 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Finding the proper Algo (2D sorting)</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/382223/382223/finding-the-proper-algo-2d-sorting/</link>
      <description>I am supposed to create an O(n(logn)^2) algorithm wich, given as input a sequence S of points in the two dimensions  (each point is discribed by a x value and a y value) the algorithm sould give or each point:&lt;br /&gt;
&lt;br /&gt;
the number of elements from which each point is strictly bigger( both x and y bigger)&lt;br /&gt;
&lt;br /&gt;
any help or idea would be appreciated!&lt;br /&gt;</description>
      <pubDate>Tue, 25 Nov 2008 16:02:59 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Greedy Algorithm Problem: Blocks and Containers</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/382214/382214/greedy-algorithm-problem-blocks-and-containers/</link>
      <description>Hello everyone! I have the following problem and I need to find a greedy algorithm which will solve it:&lt;br /&gt;
&lt;br /&gt;
There are N numbered containers (1...N). In the containers, there are blocks in K-colors, but in all containers there is no more than N blocks of the given color.&lt;br /&gt;
Capacity of the i-th container is Pi (it can hold maximum of Pi blocks). Find an algorithm that will rearrange the blocks so that in each container there is at most one block each color. In one step, you are allowed to move only one block from the container to its neighbour (from i-th container, you can move a block to either (i+1)-th or (i-1)-th container, you can also move blocks between 1'st and n-th container).&lt;br /&gt;
&lt;br /&gt;
I'd really appreciate any help. Can anyone give me any clues how to solve this problem using a greedy algorithm?&lt;br /&gt;
Many thanks.&lt;br /&gt;</description>
      <pubDate>Tue, 25 Nov 2008 07:19:21 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>pathcover..</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/382201/382201/pathcover/</link>
      <description>A path cover of a directed graph is a set of paths such&lt;br /&gt;
that every vertex is included in exactly one path. The size of a path cover is the number of paths in the set. &lt;br /&gt;
can any one tell me  how to reduce the problem of finding&lt;br /&gt;
a minimum-sized path cover in a directed acyclic graph to the problem of&lt;br /&gt;
finding a maximum-sized matching in a bipartite graph. such that the total running time of the algorithm should be in O(na).</description>
      <pubDate>Mon, 24 Nov 2008 22:33:46 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>unsigned long long int compression functions</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/382190/382190/unsigned-long-long-int-compression-functions/</link>
      <description>Hello!&lt;br /&gt;
 It my first post here :)&lt;br /&gt;
&lt;br /&gt;
 I need help with unsigned long long int compression for writing it to file.&lt;br /&gt;
&lt;br /&gt;
 Any ideas ?&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;</description>
      <pubDate>Mon, 24 Nov 2008 11:36:48 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Greedy algorithms</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/381943/381943/greedy-algorithms/</link>
      <description>Hi guys, recently i got a theme for my term paper. And it is, as you guessed, Greedy Algorithms. For bad i dont have lots of info about this algorithms and i would be very thankful if u could post here links or send some e-books on my e-mail: tyap4uk@gmail.com or just tell me some interesting tasks dealing with these algorithms . Thanks everybody beforehand&lt;br /&gt;</description>
      <pubDate>Mon, 17 Nov 2008 04:56:23 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Program for computing Internal path length of binary search tree.</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/381766/381766/program-for-computing-internal-path-length-of-binary-search-tree/</link>
      <description>HI Friends,&lt;br /&gt;
&lt;br /&gt;
Can anyone post the program for the question below....&lt;br /&gt;
&lt;br /&gt;
write a program for computing the Internal path length of a binary search tree. Use it to investigate empirically the average number of key comparisons for searching in a randomly generated binary search tree. &lt;br /&gt;</description>
      <pubDate>Tue, 11 Nov 2008 23:33:10 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Finding an algorithm</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/381706/381706/finding-an-algorithm/</link>
      <description>Right, first off I am not an advanced programmer and am self taught in what I do know so please keep that in mind. &lt;br /&gt;
&lt;br /&gt;
is it possible to reverse engineer an algorithm, if I had an output code based on multiple events and had all of these events logged and also had multiple instances of this code and the events. Would it be possible to:&lt;br /&gt;
&lt;br /&gt;
a) Write a program that takes all of the data I have collected (output code and input data) and work out the algorithm used to create that code. &lt;br /&gt;
&lt;br /&gt;
b) Use the algorithm with my own input data to create my own codes.&lt;br /&gt;
&lt;br /&gt;
And how would I go about writing a program to do this?&lt;br /&gt;</description>
      <pubDate>Mon, 10 Nov 2008 11:23:00 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>binary search</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/381445/381445/binary-search/</link>
      <description>You are given an infnite array A[] in which the first n cells contain integers in sorted order and&lt;br /&gt;
the rest of the cells are filled with1. You are not given the value of n. Describe an algorithm that&lt;br /&gt;
takes an integer x as input and finds a position in the array containing x, if such a position exists,&lt;br /&gt;
in O(log n) time. (If you are disturbed by the fact that the array A has infnite length, assume&lt;br /&gt;
instead that it is of length n, but that you don't know this length, and that the implementation&lt;br /&gt;
of the array data type in your programming language returns the error message 1 whenever&lt;br /&gt;
elements A[i] with i &amp;gt; n are accessed.)&lt;br /&gt;</description>
      <pubDate>Fri, 31 Oct 2008 07:51:33 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>sorting +VE &amp; -VE numbers</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/381223/381223/sorting-+ve---ve-numbers/</link>
      <description>Hi all.&lt;br /&gt;
I am trying to sort numbers that are mixed, i.e. positive numbers and negative numbers (with a'-' in front to indicate -ve). I am using the following code that I found on the forum to test:     &lt;br /&gt;
**********************************************&lt;br /&gt;
Public Sub OrderNumbers(ByRef iInputArray() As Integer, ByVal iArraySize As Integer)&lt;br /&gt;
        Dim iArray() As Integer&lt;br /&gt;
        Dim iOrdered() As Integer&lt;br /&gt;
        Dim iCounter As Integer&lt;br /&gt;
        ReDim iArray(0 To iArraySize - 1)&lt;br /&gt;
        ReDim iOrdered(0 To iArraySize - 1)&lt;br /&gt;
&lt;br /&gt;
        For iCounter = 0 To iArraySize - 1&lt;br /&gt;
            iArray(iCounter) = iInputArray(iCounter)&lt;br /&gt;
&lt;br /&gt;
        Next&lt;br /&gt;
&lt;br /&gt;
        For iCounter = 0 To iArraySize - 1&lt;br /&gt;
            iOrdered(iCounter) = GetLargest(iArray, iArraySize)&lt;br /&gt;
            iArray(buffer) = 0&lt;br /&gt;
        Next&lt;br /&gt;
&lt;br /&gt;
        For iCounter = 0 To UBound(iOrdered)&lt;br /&gt;
            iInputArray(iCounter) = iOrdered(iCounter)&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Function GetLargest(ByVal iInputArray() As Integer, ByVal iInputSize As Integer) As Integer&lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        Dim n As Integer&lt;br /&gt;
        Dim iBuffArray() As Integer&lt;br /&gt;
        ReDim iBuffArray(0 To iInputSize - 1)&lt;br /&gt;
&lt;br /&gt;
        iBuffArray = iInputArray&lt;br /&gt;
&lt;br /&gt;
        For i = 0 To iInputSize - 1&lt;br /&gt;
            If iBuffArray(i) &amp;gt; n Then&lt;br /&gt;
                n = iBuffArray(i)&lt;br /&gt;
                buffer = i&lt;br /&gt;
            End If&lt;br /&gt;
        Next&lt;br /&gt;
        GetLargest = n&lt;br /&gt;
************************************&lt;br /&gt;
&lt;br /&gt;
I noted that when I put a single negative number with a "-" and debugged, the algorithm 'cannot read' the value and therefore gives me a value of "0". &lt;br /&gt;
&lt;br /&gt;
Any thoughts around this would be appreciated!!!&lt;br /&gt;
&lt;br /&gt;
Tembss</description>
      <pubDate>Thu, 16 Oct 2008 05:57:55 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Run Length Encoding problem</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/375345/375345/run-length-encoding-problem/</link>
      <description>Hello! &lt;br /&gt;
&lt;br /&gt;
I have to solve a run length coding problem in matlab, compressing a vector containing integer numbers between 0 and 255, to a new vector with numbers between 0 and 255 using the following method: &lt;br /&gt;
&lt;br /&gt;
* A number 0 ≤ n ≤ 127 in the encoded data means that the following n+1 numbers will be direct copies from the original data &lt;br /&gt;
* A number 129 ≤ n ≤ 255 in the encoded data means that the next number has existed 257-n times in a row in the original data &lt;br /&gt;
* The number 128 means that the sequence is over. &lt;br /&gt;
&lt;br /&gt;
For example, the following vector: [0 1 2 9 9 9 4 5 6 7] &lt;br /&gt;
can be encoded to: [2 0 1 2 254 9 3 4 5 6 7 128] &lt;br /&gt;
or to: [9 0 1 2 9 9 9 4 5 6 7 128] &lt;br /&gt;
of which each encoding is equally good, since they are equally long (but longer than the original though). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now I tried to find an algorithm which will always provide an optimal solution to this problem, using dynamic programming, but I realized it was too long since I last solved a similar problem. I just can't figure out how to come up with such an algorithm, but I suspect one could do it with dynamic programming. I would really appreciate if someone could help me out here! &lt;br /&gt;
&lt;br /&gt;
Thanks in advance!&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 15 Sep 2008 21:26:23 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Hamilton subgraph</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/374799/374799/hamilton-subgraph/</link>
      <description>Hello all,&lt;br /&gt;
&lt;br /&gt;
I have a problem to solve and I'm not able to find a solution.&lt;br /&gt;
I'm searching for some algorithm for finding a Hamilton subgraph in an oriented graph.&lt;br /&gt;
I don't want to find all subgraphs (i need only one), and it is not necessary to be the subgraph with maximum size (50% from the maximum size would be acceptable). Also, each node has maximum two edges. My problem is that I have a huge number of nodes. But I think that with all the simplifications (not maximum, maximum 2 edges for each nodes) the complexity could be reduced a lot.&lt;br /&gt;
If you can recommend some algorithms, sites or functions (can be for pascal, c/c++, visual C, Matlab) I would be very happy. I found many packages and sites on internet but most of them were for undirected graphs, and they can not search for subgraphs (they say: the graph is hamilton and this is the path, or: no hamilton graph -&amp;gt; no path). &lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
KPanda</description>
      <pubDate>Tue, 02 Sep 2008 13:09:10 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Free Algorithms ebooks</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/374543/374543/free-algorithms-ebooks/</link>
      <description>hi,&lt;br /&gt;
&lt;br /&gt;
You can find really helpful C# books at the following link...&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://books-pdf.blogspot.com/search/label/Algorithms"&gt;http://books-pdf.blogspot.com/search/label/Algorithms&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://books-pdf.blogspot.com"&gt;http://books-pdf.blogspot.com&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://freebooksandmagazines.blogspot.com"&gt;http://freebooksandmagazines.blogspot.com&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.ebooksboard.com/"&gt;http://www.ebooksboard.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 26 Aug 2008 12:13:08 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>What Algorithm i should use???</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/374409/374409/what-algorithm-i-should-use/</link>
      <description>newb here...&lt;br /&gt;
&lt;br /&gt;
currently doing a thesis. my thesis is a game..  a board game...&lt;br /&gt;
&lt;br /&gt;
now my problem is what algorithm should i use when generating a path to &lt;br /&gt;
&lt;br /&gt;
the start point and to end point. the objective is the path must be random when generating in each level also it adds 1*level of block. &lt;br /&gt;
&lt;br /&gt;
what algorithm should I use??? now im currently studying the Breadth first search algorithm and depth first search algorithm. is this the right algos?&lt;br /&gt;
&lt;br /&gt;
tnx &lt;br /&gt;</description>
      <pubDate>Fri, 22 Aug 2008 00:49:40 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>function module</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/374025/374025/function-module/</link>
      <description>need help to write a sumsquare function module and then rewrite that fuction module into an algorithm from this pseudocode.&lt;br /&gt;
&lt;br /&gt;
count integer&lt;br /&gt;
square integer&lt;br /&gt;
sumsquare integer&lt;br /&gt;
count = 0&lt;br /&gt;
square = 1&lt;br /&gt;
do while count &amp;lt;= 2&lt;br /&gt;
count = count + 1&lt;br /&gt;
sumsquare = sumsquare + square&lt;br /&gt;
end do&lt;br /&gt;
&lt;br /&gt;
this is not home work or stuff like that, this is a class work which i probably wont get an answer for any time soon.&lt;br /&gt;</description>
      <pubDate>Fri, 08 Aug 2008 05:33:39 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Spanning tree modification</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/373157/373157/spanning-tree-modification/</link>
      <description>Hail to you my fellow geeks&lt;br /&gt;
I would like to find a polynomial algorithm for the following problem for my project: &lt;br /&gt;
Suppose you have a graph (normal, not directed). You want to find a spanning tree (any, doesnt have to be minimum), but it has to respect one rule: the edges are separated into n groups and each of these groups has a positive integer X assigned to it meaning "from this group, no more than X edges can be used in the spanning tree". &lt;br /&gt;
Can this be done in polynomial time? Any hints will be greatly appreciated, thanks.&lt;br /&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:36:32 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>The Cipher Challenge</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/372763/372763/the-cipher-challenge/</link>
      <description>Hello everyone, my algorithms teacher told us to look for an algorithm solving this problem and explaining it, help is very appreciated as we are not that deep into algorithms yet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Given a list of 4, 5, 6 ... or 10 integers (between 1 and 100) find the way of getting another integer between 1 and 2000, using only the basic operations: add, substract, multiply and divide. each number in the list can only be used once.&lt;br /&gt;
&lt;br /&gt;
challenge: design, implement and document a solution to the problem, faster than the example program (which I will link later", for sizes between 6 and 10, and that it cannot lose a solution, the program must indicaite all the reachable numbers between 1 and 2000, using the input data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
here is the link, if you need help understanding it just let me know, drop me a message or something&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://dis.um.es/%7Eginesgm/files/cifras.exe"&gt;http://dis.um.es/%7Eginesgm/files/cifras.exe&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
thanks in advance!&lt;br /&gt;</description>
      <pubDate>Thu, 19 Jun 2008 07:40:13 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Multiple paths in a graph</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/372459/372459/multiple-paths-in-a-graph/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I would like to know if there is any special algorithm to find, in a graph a certain number of paths (say =MAX_PATHS, the case when the number of paths are less than MAX_PATHS must also be taken care of )from a given source to all the other vertices in the graph. &lt;br /&gt;
By special I imply that this algorithm must not be like applying the standard algorithms like DFS, BFS etc multiple times by removing the edges already used.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Virajith&lt;br /&gt;</description>
      <pubDate>Fri, 06 Jun 2008 09:07:55 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Fast multidimensional indexing</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/372454/372454/fast-multidimensional-indexing/</link>
      <description>I devised an algorithm that, given a set of points in a multidimensional space, can find all the points in an arbitrary box very efficiently.&lt;br /&gt;
My algorithm needs space O(n log^(d-1)n) and answers a query, in the worst case, in time O(log^(d-1)n), where d is the dimension of the space.&lt;br /&gt;
For instance, if the space is two-dimensional, it requires space O(nlogn) and answers a query, in the worst case, in time O(logn). As you can see, it's *very* fast, but requires some space.&lt;br /&gt;
I think it's an important result from a theoretic point of view and not only.&lt;br /&gt;
You can find my paper here:&lt;br /&gt;
&lt;a href="http://wcemdi.blogspot.com/"&gt;http://wcemdi.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Technical papers, as always, make algorithms look *much* more complex than they really are. If you want to discuss a part of the paper, you find an error, or there is a point particularly unclear, don't hesitate to ask.&lt;br /&gt;</description>
      <pubDate>Fri, 06 Jun 2008 03:39:02 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Greener developing and collaboration</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/372272/372272/greener-developing-and-collaboration/</link>
      <description>Want to cut down on CO2? Enable in-context collaboration for multi-site software development and collaboration. Find out in Florida! (Tech-Ed related info) &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.rationalheroes.com/"&gt;http://www.rationalheroes.com/&lt;/a&gt;&lt;br /&gt;</description>
      <pubDate>Thu, 29 May 2008 13:36:39 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Solve quation</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/371905/371905/solve-quation/</link>
      <description>I wish to solve this euqtion to find LC 90 .&lt;br /&gt;
I need to figure out the value of concentration which would kill 90% of toxic material.&lt;br /&gt;
&lt;br /&gt;
The value of a,b,c,d is known from regression .&lt;br /&gt;
&lt;br /&gt;
Y%=Exp^(a*con+b)+Exp^(c*con+d)&lt;br /&gt;
&lt;br /&gt;
I need to cut down the quation to find con value.&lt;br /&gt;
&lt;br /&gt;
10%=Exp^(a*con+b)+Exp^(c*con+d)  which should give me &lt;br /&gt;
&lt;br /&gt;
con= ?&lt;br /&gt;
&lt;br /&gt;
Could any body help me solve this equation.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Pac&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 15 May 2008 02:24:53 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>3D Delauney</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/371227/371227/3d-delauney/</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
I have a 3D surface in existence which is defined by a series of points. So each point is (x,y,z). Now I need to find the 3D Delauney map of the surface such that I can then find the normals to each polygon (triangle on the surface). I know how the algorithm works, but dont want to re-invent the wheel. Does anyone have a suggestion about where to go to find an algorithm to do this.&lt;br /&gt;
&lt;br /&gt;
1. I don't need to introduce vertices's - these are in existence so the surface is already there.&lt;br /&gt;
2. Must be three dimensional.&lt;br /&gt;
3. Should be easy to implement and free.&lt;br /&gt;
&lt;br /&gt;
Most grateful for any help. Thanks in advance.</description>
      <pubDate>Tue, 15 Apr 2008 15:13:08 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Navigation Systems</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/370935/370935/navigation-systems/</link>
      <description>Hi guys!&lt;br /&gt;
&lt;br /&gt;
I am doing a research about algorithms used on navigation systems. Can someone give me some links with good information?&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;</description>
      <pubDate>Sun, 06 Apr 2008 17:22:53 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>Hiding Data in Text File</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/370472/370472/hiding-data-in-text-file/</link>
      <description>Hi guys...&lt;br /&gt;
I have successded in hiding data in a text file without &lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;changing/replacing/distorting any of the readble/printable letters&lt;/strong&gt;&lt;/span&gt; of the text file and even &lt;strong&gt;the size of the text file remains unchanged&lt;/strong&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; after hiding the data.&lt;br /&gt;
All the techniqs that i have checked...change the file size and replace characters/append the data.But my techniq does not change the file size,does not append the data or does not replace/change/distort any readable/printable characters.&lt;br /&gt;
Is this techniq already in use or what i am claiming is something new?&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 19 Mar 2008 13:29:16 -0700</pubDate>
      <category>Algorithms</category>
    </item>
    <item>
      <title>amortized analysis time complexity problem</title>
      <link>http://www.programmersheaven.com/mb/Algorithms/370415/370415/amortized-analysis-time-complexity-problem/</link>
      <description>Hi all&lt;br /&gt;
&lt;br /&gt;
Is there anybody who can solve this problem? This is not a easy problem. (At  least not for me.)&lt;br /&gt;
&lt;br /&gt;
Here is the problem.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;Problem:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Assume that George(S,X) is a function that returns a Boolean value, where S is a stack, and that the time complexity of George is O( log |S| ) , where |S| is the current size of the stack.&lt;br /&gt;
&lt;br /&gt;
Consider the following block of pseudo code.&lt;br /&gt;
&lt;br /&gt;
     S &amp;lt;--  the empty stack&lt;br /&gt;
            For i from 1 to n do&lt;br /&gt;
                      Read (Xi)&lt;br /&gt;
                      While (S! = Ø) and George(S, Xi) do&lt;br /&gt;
                                 Pop (S)&lt;br /&gt;
                       End while&lt;br /&gt;
                     Push Xi onto S&lt;br /&gt;
            End for&lt;br /&gt;
Assume that reading, popping and pushing take O (1) time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use Amortized analysis to prove that the block of code runs in O (n logn) time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please describe your answer in detail if you know the solution.&lt;br /&gt;
&lt;br /&gt;
Any help is appreciated.&lt;br /&gt;</description>
      <pubDate>Mon, 17 Mar 2008 15:18:48 -0700</pubDate>
      <category>Algorithms</category>
    </item>
  </channel>
</rss>