A Sunday afternoon stroll

May 26th, 2008 admin

SundayStroll

Kavita and I walked around Lake Raleigh in the NCSU campus. Here Kavita discovered a treasure of mulberry trees lining the lake. She was so excited, she started to eat the mulberry fruit within 3 seconds of the discovery, without giving me a chance to think through the implications of eating some wild berry off of a wild tree. She enjoyed them so thoroughly that I was tempted to try it out, and it was, indeed, sweet. Later, we went to the DH Hill library (the main NCSU library). I wanted to show Kavita the Digital Medial Lab at the NCSU library. We also tried the long-distance wireless talking device on the lawns outside the library. This is a pair of pink stone (or cement) blocks with a concave piece gouged out of each and made to fact each other, with about a 100 feet between them.

I came back home and double-checked to make sure that we had not ingested something crazy and found out that what we ate was, most likely, morus rubra (red mulberry). Here is the wikipedia link to mulberry.

Click on the picture to go to the rest of the album.

Posted in Travel | No Comments »

Mau’s Question

May 24th, 2008 admin

There is a matrix of numbers with n rows and m columns. The matrix consists of integers taking the value 1 through n. That is, at any given cell in the matrix the value is 1 or 2 or 3 or … or n. We want to find out how many such matrices exist in which you can always find n cells, one per row, that together have all the n unique integers in them.

Here is my approach and my solution to the problem. This solution has not been verified by Mau or anyone else, and there is a chance that I am missing some aspect of rigor required to make the proof watertight and, thus, self-verifying.

Approach

The space of all nxm matrices can be divided into a disjoint set of matrices that completely span the space. This disjoint set comprises
- matrices which have no row with all n numbers
- matrices which have exactly one row that contains all n numbers
- matrices which have exactly two rows that contain all the n numbers
… so on till
- matrices which have exactly n-1 rows that contain all the n numbers
- matrices which have each of the n rows containing all the n numbers

Now we can solve the problem for each subset that makes up the disjoint set that spans the space of mxn matrices, and add up the individual results. Interestingly, working backwards makes more sense to me. So let’s look at the subset of matrices which have all the n numbers in each of the n nows. There is no candidate matrix here that fails our criterion. All matrices will satisfy the criterion. Let’s call the set of matrices that satisfy the criterion, the set S and those that fail the criterion the set F. Therefore no matrix in this subset adds to F.

Next, let’s look at the subset of matrices which have all the n numbers in exactly n-1 rows. The remaining row, whatever be the number or numbers it carries, will cause the matrix to satisfy the criterion. Therefore no matrix in this subset adds to F.

Next, let’s look at the subset of matrices which have all the n numbers in exactly n-2 rows. The remaining 2 rows, will cause the overall matrix to fail, if they have no more than 1 number in them. That is they remaining two rows must be full of only one number. If a second number exists in either of the two rows, the matrix satisfies our criterion.

And so on.

So, the number of matrices in F is a sum of the following product over all values of i:
(how many ways can we select n-i rows)(how many ways can all n unique numbers show up in each of those selected rows)(how many ways can the remaining i rows contain, at most, i-1 unique numbers)

Solution

Basically, out of all possible matrices with n rows and m cols such that each element is an integer between 1 and n (both included), I try to figure out the number of matrices which do NOT satisfy the condition we are after, i.e., for these matrices you CANNOT select n elements, one on each row, such that the n elements are the n unique numbers, 1 through n. Call this set of matrices, which fail the condition, F (for fail). We are trying to find how many elements are in the set F.

The final answer for the number of matrices the satisfy the criteion, therefore, will be n^(n.m) – |F|, where |F| represents the cardinality of F, that is, the number of elements in set F.

To get to |F|, my line of thinking was:

F =
matrices for which there are, at most, n-1 unique numbers in the n rows
+ matrices for which there are, at most, n-2 unique numbers in n-1 rows and all n numbers in the remaining 1 row
+ matrices for which there are n-3 unique numbers in n-2 rows and all n numbers in the remaining 2 rows + … etc.

By ensuring that all the n numbers show up in the remaining x rows we are making sure that the matrix that satisfies a given term in the above summation does not satisfy the the previous term, and thus avoids being double counted.

Substituting terms,

|F|={ ^n}C_n{ ^n}C_{n-1}{ n-1}^{nm}
+{ ^n}C_{n-1}{ ^n}C_{n-2}{ (n-2)}^{(n-1)m}{ ((m-n)^n\frac{m!}{(m-n)!})^1}
+{ ^n}C_{n-2}{ ^n}C_{n-3}{ (n-3)}^{(n-2)m}{ ((m-n)^n\frac{m!}{(m-n)!})^2} + …

As a summation, this can be written as

|F| =\displaystyle\sum_{i=0}^{n-2}{ ^n}C_{n-i}{ ^n}C_{n-i-1}{ (n-i-1)}^{(n-i)m}{ (\frac{(m-n)^nm!}{(m-n)!})}^i

Here is how to understand each term in the summation above:
^nC_{n-i} is the number ways can you choose n-i rows
^nC_{n-i-1}  is the number ways can you choose the n-i-1 numbers that will go into the selected n-i rows
(n-i-1)^{(n-i)m} is the number of ways can those (n-i).m elements in those n-i rows be filled with the chosen (n-i-1) numbers
(\frac{(m-n)^nm!}{(m-n)!})^i is the number of ways we can guarantee that the remaining i rows each contain all the n elements.

Posted in Tidbits | No Comments »

Annamacharya Jayanti Celebrations in Morrisville, NC

May 22nd, 2008 admin

On May 17th, Kavita’s music teacher, Mrs. Anuradha Chivukula, organized Sri Annamacharya Jayanti celebrations at the Hindu Bhavan Hall in Morrisville, North Carolina. She has been organizing this event every year for the past 11 years. The main purpose is to celebrate the great 15th century poet-composer-saint Sri Annamacharya by bringing together the local Carnatic music and Indian Classical dance talent to participate in the celebration. This also gives a wonderful opportunity for the local and regional audiences to enjoy some beautiful music and dance, and socialize. Many of the participants and members of the audience also bring food items and this provides for a large pot-luck style lunch and is an added draw for the audience. Of course, all of this is at no cost to the audience! Kavita participated this year in the event by singing, as part of a group, 4 kritis composed by Sri Tallapaka Annamacharya.

Here are some video snippets of the event.

 


 



 

Two girls (whose names I will provide as soon as I can find out) did an awesome job singing the kriti, “Vande Vasudevam”.

 




 

Kavita’s music teacher, Mrs. Anuradha (in the center in the video) along with other participants (Left to Right: Mrs. Jyothi Sadhu, Mrs. Srikanthi Gunturi, Mrs. Anuradha Chivukula, Mrs. Lakshmi Putcha and Mr. Subramanyam Darbha) sang the 7 main compositions by Sri Annamacharya, called Saptagiri Kirtanas. They were supported by, Mr. Kalyan Sundar on the veena, Mr. Vikram Raj Kumar on the violin (Vikram is an NC State student) and Master Arjun Raghavan who did a splendid job playing the mridangam.

 


 



 

Kavita and friends (Left to Right: Mrs. Sumana Nanduri, Mrs. Kavita Krishna, Mrs. Usha Jayanthi, Mrs. Lakshmi Karra and Mrs. Uma Gorti) singing some kirtanas.

 

Posted in Events | No Comments »

Comments on my older webpage

May 20th, 2008 admin

March 22, 2005 – 08:22 PM

Vijay Vadali: Akka told my friends and me about your website.”You have made imagination turn real”. Some of my friends are so inspired by the pics of your house that they now are drawing inspiration. Wonderful pictures.

Anil’s Response: Thank you (also for bringing to my notice the problems with the previous guestbook)

March 22, 2005 – 08:22 PM

Venkat Moncompu: Hi Anil, It’s by far the most well created website by a working individual that I have come across in the recent times. The pains taken to keep it chronologically and meticulously organised, speaks for the enthusiasm and effort that does go into such an excellent website. One of your picture – that of the cyclist in motion – fascinated me since I’v been always wanting to take one such picture at high shutter speed. Have read about the techniques in photography books but never tried it. Looking forward to meeting you in early october.. till then. cheers, Venkat

Anil’s Response: I’ll tell you more about how to take such pics the next time we meet which I suppose would be this April!

December 22, 2004 – 08:22 PM

Saurabh Mishra: Awesome job anil!! Very well organized and excellent collection of poems, pics, thoughts and just everything else. Keep up the good work. Best wishes to you and Kavita for the wedding. -Saurabh

Anil’s Response: Thank you

March 22, 2005 – 08:22 PM

Prashant Kaushal Hi Anil, Congratulations for maintainig such a wonderful site. Good Job!. Also, CK’s pictures were great. Cheers, Prashant.

Anil’s Response: Thank you, CK’s pictures are usually great!

March 22, 2005 – 08:22 PM

Meenakshi Chandrasekar: anil!! ur poems are awesome!!the website on the whole is great! meenu

Anil’s Response: Thank you Meenu. Keep in touch!

March 22, 2005 – 08:22 PM

Giridhar Appaji Nag: Anil, surfed over here from Samya’s site. Good to read your poems again.

Anil’s Response: Thank you and your webpage inspires me. Good stuff.

March 22, 2005 – 08:22 PM

Babji Gudapati: Good work Anil. Keep it up. Picures are very good and your sketch work is excellent.

Anil’s Response: Thank you for your kind words!

March 22, 2005 – 08:22 PM

Amit Juneja: Great website, Anil. It was nice to put the tips for parents’ visit to the US. Of course, great sketches and paintings. And what is mango dal? Next time we meet, you are cooking this for us!

Anil’s Response: Most certainly we shall make mango dal the next time we meet!

Anil Krishna: The guestbook items posted March 22, 2005 are actually collected over a period of about a year or so prior to that date. The reason they all show up on the same date in this guestbook is because I moved these entries from my previous guestbook which did not have the date information

Posted in Friends | No Comments »

Setup and Hold Violations in Digital Systems

May 19th, 2008 admin

I wrote this up when trying to prepare for my PhD Qualifying Examination this past semester (Spring 2008). It is a pdf file. You can read it here.

Posted in Tutorials | No Comments »

May the fourth be with you!

May 4th, 2008 admin

After many months of being unable to work much on my website, I ironed out enough wrinkles to be able to launch this new look, Wordpress-based webpage, which is more blog-like than my earlier webpage, which used the collection-of-pages style. I hope that the Wordpress format will make it a lot easier for me to keep posting more regularly now since I do not have to bother with formatting HTML etc. to make the page appear right. It may, therefore, put you squarely at the receiving end of some not-so-well-though-out, whimsical posts. With that warning, let me start off the content dilution that Wordpress allows me with a picture of some fresh and juicy strawberries we picked yesterday at Jean’s Strawberry patch in Apex (a 15 minutes drive away).

Posted in Events | 2 Comments »