<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Data Structures/Algorithms</title>
		<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/-t1.htm</link>
		<description></description>
		<lastBuildDate>Thu, 18 Sep 2008 06:58:16 GMT</lastBuildDate>
		<ttl>10</ttl>
		<image>
			<title>Data Structures/Algorithms</title>
			<url>http://illiweb.com/fa/prosilver_pink/site_logo.gif</url>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/-t1.htm</link>
		</image>
		<item>
			<title>Lets get started again!!!</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/lets-get-started-again-t40.htm</link>
			<dc:creator>shivang</dc:creator>
			<description>Given a 2-dimensional array of positive and negative integers, 

find the sub-rectangle with the largest sum. 

The sum of a rectangle is the sum of all the elements in that rectangle. 

In this problem the sub-rectangle with the largest sum is referred to as the maximal sub-rectangle. 

A sub-rectangle is any contiguous sub-array of size 1 x 1 or greater located within the whole array. 



As an example, the maximal sub-rectangle of the array:



matrix2



0......2.....-7....0

9......2......-6....2

-4.....1......-4....1

-1.....8......  ...</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Wed, 27 Aug 2008 13:13:47 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/lets-get-started-again-t40.htm#171</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/lets-get-started-again-t40.htm</guid>
		</item>
		<item>
			<title>RandonInt()</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/randonint-t56.htm</link>
			<dc:creator>SwitchCase</dc:creator>
			<description>A nested function call is when inside a function, you call the same function.\



We will now define a function RandomInt(N). This function generates a random number between 0 and N-1 (inclusive) with equal probability.

Now RandomInt(Random(Random(..........RandomInt(N).....)))) is nested.

RandomInt(N) means nesting of 1.

And RandomInt(RandomInt(N)) means nesting of 2 and thus so on....



You will be given a Number N, nesting (the no of nestings) and Target.



You have to give the  ...</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Thu, 18 Sep 2008 06:58:16 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/randonint-t56.htm#235</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/randonint-t56.htm</guid>
		</item>
		<item>
			<title>Probability....!!</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/probability-t55.htm</link>
			<dc:creator>SwitchCase</dc:creator>
			<description>You are given a value n. 

This represents nXn Chess Board.



Im sure you all know how a knight moves on a chess board.

You will be given a starting position for the knight (x,y)

With 1,1 being the bottom left corner.



Now, a knight can jump over other pieces and can thus make J number of jumps.



Given n, x,y, J



Find the probability that after J jumps the knight is still on the Board.

(The knight is said to be outside a board, if a jump causes it to move out of the nXn  ...</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Thu, 18 Sep 2008 06:52:55 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/probability-t55.htm#234</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/probability-t55.htm</guid>
		</item>
		<item>
			<title>Sum of all Permutations</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/sum-of-all-permutations-t54.htm</link>
			<dc:creator>prani</dc:creator>
			<description>you are given a number n

you are to give the sum of all possible unique permutations

Example 

0)



    

157

Returns: 2886

We have: 157 + 175 + 517 + 571 + 715 + 751 = 2886

1)

  

313

Returns: 777

We have: 133 + 313 + 331 = 777

2)

   

1234

Returns: 66660



3)

    

5

Returns: 5



4)

    

54321

Returns: 3999960



5)

    

99999

Returns: 99999



problem source SRM 252 topcoder </description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Tue, 16 Sep 2008 17:18:25 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/sum-of-all-permutations-t54.htm#230</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/sum-of-all-permutations-t54.htm</guid>
		</item>
		<item>
			<title>Rotate an array and a linked list</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/rotate-an-array-and-a-linked-list-t2.htm</link>
			<dc:creator>Admin</dc:creator>
			<description><![CDATA[Suppose we have an array A having n elements. You have to rotate the array by k positions.
<br />
For e.g. if we have the array A={1,2,3,4,5} and k=2 then the resulting array should be {3,4,5,1,2}. Try to post an in-place solution. The array need not be sorted originally. The question has multiple solutions. Try to discuss all.
<br />

<br />
Now what will be the approach if you want to rotate a singly linked list instead of an array.]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Sun, 03 Aug 2008 12:03:48 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/rotate-an-array-and-a-linked-list-t2.htm#2</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/rotate-an-array-and-a-linked-list-t2.htm</guid>
		</item>
		<item>
			<title>Reverse a list</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/reverse-a-list-t13.htm</link>
			<dc:creator>Pulkit</dc:creator>
			<description><![CDATA[write a code to reverse a singly linked list.... 
<br />

<br />
If done with this try it for a Doubly linked list.]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Tue, 12 Aug 2008 17:08:23 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/reverse-a-list-t13.htm#42</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/reverse-a-list-t13.htm</guid>
		</item>
		<item>
			<title>count total trees</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/count-total-trees-t42.htm</link>
			<dc:creator>Admin</dc:creator>
			<description><![CDATA[Write a program to count the total no. of binary trees possible with n nodes.
<br />
Try to optimise the solution.]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Sat, 30 Aug 2008 17:00:39 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/count-total-trees-t42.htm#175</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/count-total-trees-t42.htm</guid>
		</item>
		<item>
			<title>first repeated element in an array???????</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/first-repeated-element-in-an-array-t22.htm</link>
			<dc:creator>ish_mnnit</dc:creator>
			<description><![CDATA[give an algo in o(n) to find first repeated element in an array?
<br />
e.g.{1,2,3,4,2,1,5,6}
<br />
output=2]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Wed, 13 Aug 2008 17:41:16 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/first-repeated-element-in-an-array-t22.htm#87</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/first-repeated-element-in-an-array-t22.htm</guid>
		</item>
		<item>
			<title>n largest sum</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/n-largest-sum-t23.htm</link>
			<dc:creator>mnnit.rahul</dc:creator>
			<description><![CDATA[two arrays of length n (decreasingly sorted) .now take an element from the first array and another from the second and add them both ....
<br />
the aim is to find such n largest sums in o(n) complexity]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Wed, 13 Aug 2008 17:45:21 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/n-largest-sum-t23.htm#88</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/n-largest-sum-t23.htm</guid>
		</item>
		<item>
			<title>Challenging SHOPKEEPER COIN problem</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/challenging-shopkeeper-coin-problem-t36.htm</link>
			<dc:creator>Ramprasadg</dc:creator>
			<description>remember what sunita mam was saying in class.....i know most of us don't  .

PROBLEM:

given a set of denominations,make an amount with min no of coins.

no of coins of each denomination is unlimited.

but the catch is that u can also get back money i.e. its like a shop keeper on the other side and not a ATM machine.

for eg:

given 1 , 10 ,15 as the denominations

u can make 20 from 2 coins by 10+10

u can form 5 from 2 coins by 15-10.ie by giving 15 Rs and getting back 10Rs.

u can  ...</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Mon, 18 Aug 2008 20:57:24 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/challenging-shopkeeper-coin-problem-t36.htm#151</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/challenging-shopkeeper-coin-problem-t36.htm</guid>
		</item>
		<item>
			<title>Computer club Question</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/computer-club-question-t29.htm</link>
			<dc:creator>Ramprasadg</dc:creator>
			<description>last year in computer club this question was asked...i am pretty sure gaurav-ji knows the ans...

given a number n.print all the numbers from 1 till n^2 in a spiral.

for example given 3.

print the following

1 2 3

8 9 4

7 6 5



for 4 

1  2  3 4

121314 5

111615 6

109  8  7



(i am not able to align for n=4 correctly,but i am sure everyone can get it??? :   )



please give logic/code....but mainly tell me the class under which it comes if you know </description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Sat, 16 Aug 2008 13:19:39 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/computer-club-question-t29.htm#125</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/computer-club-question-t29.htm</guid>
		</item>
		<item>
			<title>MERGING TREES</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/merging-trees-t18.htm</link>
			<dc:creator>prani</dc:creator>
			<description><![CDATA[Given two balanced binary trees,
<br />
       how to merge them in minimum time so that final tree is also balanced???]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Wed, 13 Aug 2008 15:24:43 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/merging-trees-t18.htm#72</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/merging-trees-t18.htm</guid>
		</item>
		<item>
			<title>DBMS Section</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/dbms-section-t25.htm</link>
			<dc:creator>shivang</dc:creator>
			<description><![CDATA[Hey i thnk we should have one section in teh forum dedicated to Database management also....
<br />
Vase nice work buddies.....but a way to go
<br />
keep up the good work.... <img src="http://illiweb.com/fa/i/smiles/icon_cheers.png" alt="cheers" longdesc="42" />]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Wed, 13 Aug 2008 18:30:40 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/dbms-section-t25.htm#92</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/dbms-section-t25.htm</guid>
		</item>
		<item>
			<title>Graph Problem</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/graph-problem-t15.htm</link>
			<dc:creator>shivang</dc:creator>
			<description>Given an Adjacency Matrix representation of A directed Graph u have to find in O(V) time complexity if der is a Universal Sink in the Graph



Universal Sink:A vertex V is said to be universal sink if the rest |V| -1 vertices point to it and the vertex V itself doesnot have any out edge..i.e. it does not point to any other vertex.

example : consider the following Adj Matrix

..........a.....b.....c.....d

a.......0......1.....0.....1

b.......0......0.....0.....0

c........0......1......1.....1

d.........1......1.....0.....0



here  ...</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Tue, 12 Aug 2008 21:58:39 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/graph-problem-t15.htm#59</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/graph-problem-t15.htm</guid>
		</item>
		<item>
			<title>same no. of one's</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/same-no-of-one-s-t24.htm</link>
			<dc:creator>mnnit.rahul</dc:creator>
			<description>Given a number N, how many numbers less than N have the same number of 1s as N in their binary form ??</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Wed, 13 Aug 2008 17:46:36 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/same-no-of-one-s-t24.htm#89</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/same-no-of-one-s-t24.htm</guid>
		</item>
		<item>
			<title>rotation of string</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/rotation-of-string-t16.htm</link>
			<dc:creator>Admin</dc:creator>
			<description><![CDATA[you are given two string s1 and s2 and you have to tell whether string s2 is rotation of string s1 or not you have to use strstr function only once ?
<br />
example s1=abcde
<br />
              s2=cdeab
<br />
        here s2 is a rotation of s1
<br />
 <img src="http://illiweb.com/fa/i/smiles/icon_question.gif" alt="Question" longdesc="17" />]]></description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Wed, 13 Aug 2008 13:45:36 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/rotation-of-string-t16.htm#64</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/rotation-of-string-t16.htm</guid>
		</item>
		<item>
			<title>Anagrams?????</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/anagrams-t11.htm</link>
			<dc:creator>Admin</dc:creator>
			<description>You have been given 2 strings str1 and str2. Find whether the strings are anagrams of each other. What will be the test cases??</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Tue, 12 Aug 2008 14:49:54 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/anagrams-t11.htm#33</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/anagrams-t11.htm</guid>
		</item>
		<item>
			<title>Find the missing element in the array</title>
			<link>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/find-the-missing-element-in-the-array-t1.htm</link>
			<dc:creator>Admin</dc:creator>
			<description>Suppose we have an array A containing elements from 1 to n. An element is made zero and the resulting array is called B. Find the element that was made zero. Consider all the test cases and boundary conditions. Try to post multiple solutions. (This question was asked in Adobe written exam)</description>
			<category>Data Structures/Algorithms</category>
			<pubDate>Sun, 03 Aug 2008 12:03:15 GMT</pubDate>
			<comments>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/find-the-missing-element-in-the-array-t1.htm#1</comments>
			<guid>http://computerclub09mnnit.forumotion.net/data-structures-algorithms-f1/find-the-missing-element-in-the-array-t1.htm</guid>
		</item>
	</channel>
</rss>