Re: Finding shared element in two lists
- To: mathgroup at smc.vnet.net
- Subject: [mg114081] Re: Finding shared element in two lists
- From: Jason Ebaugh <ebaughjason at gmail.com>
- Date: Tue, 23 Nov 2010 05:58:02 -0500 (EST)
I figured out my original question this morning. The answer is about as "functional" as one can get! Use the built in function LongestCommonSequence[] The solution for the first example is: LongestCommonSequence [ myhouse, friendshouse ] For the taxonomy question: LongestCommonSequence [ aphid, mosquito ] It is still a good exercise to solve these problems as if LongestCommonSequence[] didn't exist. I'll just add that to my very long "it would be great to have figured out" list. Jason -- Jason Ebaugh, PhD. Personal communications: ebaughjason at gmail.com Business communications: jason.ebaugh at apisscientific.com Dissertation: http://hdl.handle.net/2142/13005 Linkedin: http://www.linkedin.com/profile?viewProfile=&key=22842228&locale=en_US&trk=tab_pro Need bioinformatics help? www.apisscientific.com