tag:blogger.com,1999:blog-4173009097072632796.post3770781434310804564..comments2024-03-25T13:17:16.750+05:30Comments on Arunprakash's Blog: View in Sql Server 2008Arun Prakashhttp://www.blogger.com/profile/00374834301274596329noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-4173009097072632796.post-64821755373974728712011-06-20T15:26:59.819+05:302011-06-20T15:26:59.819+05:30Don't bother finding the problems in the lists...Don't bother finding the problems in the lists of post, easily access them through the page <a href="http://tanmayonrun.blogspot.com/p/my-works.html" rel="nofollow">My Works</a>Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-73707167212586457962011-06-20T13:42:11.072+05:302011-06-20T13:42:11.072+05:30Sure , I will see your problems when i have free t...Sure , I will see your problems when i have free time..Thank you...Arun Prakashhttps://www.blogger.com/profile/00374834301274596329noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-14010324237515999282011-06-19T22:03:27.274+05:302011-06-19T22:03:27.274+05:30Yeah, I found the limitation too. I think it is in...Yeah, I found the limitation too. I think it is in every language.<br /><br />However, I have posted two problems which will seem easy to you as I think you are a very good programmer. But still you can check them out through the following links....<br /><br /><a href="http://tanmayonrun.blogspot.com/2011/06/my-works-matrix-problem-02.html" rel="nofollow">Matrix Problem 02</a><br />Problem: In a given matrix all the cells will contain a value of 1 or 0. Change the value of a cell to 1 if the summation of its 8 adjacent cells are 3 or greater than 3, otherwise change the value to 0. Boundary cells can have 3 or 5 or less adjacent cells depending on the size of the matrix, so for boundary cells you will have to calculate over them. The number of rows and columns will be equal. For example, you might be given a 8x8 matrix. The values will be given by the user. You can keep the number of cells 8x8 or you can make it variable or user inputted. <br /><br /><a href="http://tanmayonrun.blogspot.com/2011/06/my-works-tic-tac-toe-game-model.html" rel="nofollow">Tic-Tac-Toe Game</a><br />Problem: We hope we are all known with the game Tic-Tac-Toe. Well..if we are not, we will be soon. You will not have to build any artificial intelligence for the game as the game will be played by two human, I mean users. Lets get into it.....<br /><br />Visit the links for explanations with required images and download links of the EXEs of the solutions I made.Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-59907670530604372392011-06-18T12:09:37.980+05:302011-06-18T12:09:37.980+05:30i check the above code, there is limitation in dot...i check the above code, there is limitation in dotnet for recursion, in the above code recursion is about 35431409 times when you give input 4,1<br /><br />Don't recurse too many times...Arun Prakashhttps://www.blogger.com/profile/00374834301274596329noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-63785869490486592802011-06-18T09:43:02.891+05:302011-06-18T09:43:02.891+05:30try this i refer this link
http://rosettacode.org...try this i refer this link<br /><br />http://rosettacode.org/wiki/Ackermann_function<br /><br />using System;<br />class Program<br />{<br /> public static long Ackermann(long m, long n)<br /> {<br /> if(m > 0)<br /> {<br /> if (n > 0)<br /> return Ackermann(m - 1, Ackermann(m, n - 1));<br /> else if (n == 0)<br /> return Ackermann(m - 1, 1);<br /> }<br /> else if(m == 0)<br /> {<br /> if(n >= 0) <br /> return n + 1;<br /> }<br /> <br /> throw new System.ArgumentOutOfRangeException();<br /> }<br /> <br /> static void Main()<br /> {<br /> for (long m = 0; m <= 3; ++m)<br /> {<br /> for (long n = 0; n <= 4; ++n)<br /> {<br /> Console.WriteLine("Ackermann({0}, {1}) = {2}", m, n, Ackermann(m, n));<br /> }<br /> }<br /> }<br />}Arun Prakashhttps://www.blogger.com/profile/00374834301274596329noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-47367243908957728132011-06-17T21:10:34.944+05:302011-06-17T21:10:34.944+05:30Their code is also failing to calculate m=4, n=1. ...Their code is also failing to calculate m=4, n=1. And also I did not find anything else in their code. However if you have found anything, please notify me.<br /><br />I am trying to develop another way divide the recursion and save the result of each recursion. It will consume a bit memory, but right now I need this, It may also slow down the process.<br /><br />And obviously, I will try Tower of Hannoi but factorial is enough better with a 'for loop' (I think).Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-9610791466581368392011-06-17T19:03:36.981+05:302011-06-17T19:03:36.981+05:30try factorial or tower of hanoi using recursiontry factorial or tower of hanoi using recursionArun Prakashhttps://www.blogger.com/profile/00374834301274596329noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-16704096420112920102011-06-17T17:41:40.932+05:302011-06-17T17:41:40.932+05:30Check this code,your logic has some error, check i...Check this code,your logic has some error, check it for reference<br />http://www.dreamincode.net/code/snippet5771.htmArun Prakashhttps://www.blogger.com/profile/00374834301274596329noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-70585420015777674982011-06-17T17:05:00.035+05:302011-06-17T17:05:00.035+05:30hmmm...the background worker wont work as msdn is ...hmmm...the background worker wont work as msdn is saying that this error is because of too many method calls or too much recursion.Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-72546267145650038922011-06-17T16:58:31.636+05:302011-06-17T16:58:31.636+05:30An unhandled exception of type 'System.StackOv...An unhandled exception of type 'System.StackOverflowException' occurred in recursion_test.exe<br /><br />What does this mean dada? it is highlighting the declaration line of the ack(m,n) function?Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-23353345426503779392011-06-17T16:50:13.216+05:302011-06-17T16:50:13.216+05:30Yeah Dada, I found some problem with big data like...Yeah Dada, I found some problem with big data like<br /><br />(m=4, n=1), or (m=3, n>15) etc. There is no problem with the code. But there is problem with the huge complexity arises. The program is crashing with such data.<br /><br />What do you think, will this be gone if I use BackgroundWorker????Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-91785890923257560132011-06-17T16:32:40.457+05:302011-06-17T16:32:40.457+05:30obviously, right at the bottom of the post I have ...obviously, right at the bottom of the post I have given the download link, just download and run it.<br /><br />Give two values of m and n, then press the button, it will show you the answere.Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-60819860909954544832011-06-17T11:20:12.826+05:302011-06-17T11:20:12.826+05:30did u check this code?did u check this code?Arun Prakashhttps://www.blogger.com/profile/00374834301274596329noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-30185413154062876262011-06-17T02:36:45.494+05:302011-06-17T02:36:45.494+05:30Dada, this is first time I have tested Recursive m...Dada, this is first time I have tested Recursive method in any program. Just to test it I have coded the ackerman function and I found it really tests well....mmmhhh..aaa....<br /><br />You know, I just didn't even write a single line for the program, the definition was a program itself. I know its simple, but still, if you want you check it out from the following link<br /><br />http://tanmayonrun.blogspot.com/2011/06/my-works-ackerman-function.htmlTanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-42196186399115978152011-06-16T11:57:15.253+05:302011-06-16T11:57:15.253+05:30I am Arun Prakash,I am working in software company...I am Arun Prakash,I am working in software company in coimbatore now.sorry i don't know Bangla language.I didn't used silver light yet...Arun Prakashhttps://www.blogger.com/profile/00374834301274596329noreply@blogger.comtag:blogger.com,1999:blog-4173009097072632796.post-89031022493312174332011-06-15T20:26:43.450+05:302011-06-15T20:26:43.450+05:30Thanks. Dada, have you used silverlight with .NET?...Thanks. Dada, have you used silverlight with .NET? What is silverlight and how I can use it with .NET?<br /><br />Tell me from yourself, I mean not from LINKs.<br /><br />Dada, do you know Bangla language?Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.com