<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: </title>
	<atom:link href="https://www.emblogic.com/blog/07/3893/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/07/3893/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: kpeswani</title>
		<link>https://www.emblogic.com/blog/07/3893/#comment-991</link>
		<dc:creator><![CDATA[kpeswani]]></dc:creator>
		<pubDate>Tue, 17 Jul 2012 10:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3893#comment-991</guid>
		<description><![CDATA[since u r developing an algo try to reduce the complexity of ur algo.....in O(n)

Hint: study data structure TRIE]]></description>
		<content:encoded><![CDATA[<p>since u r developing an algo try to reduce the complexity of ur algo&#8230;..in O(n)</p>
<p>Hint: study data structure TRIE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>https://www.emblogic.com/blog/07/3893/#comment-977</link>
		<dc:creator><![CDATA[Abhishek]]></dc:creator>
		<pubDate>Fri, 13 Jul 2012 06:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3893#comment-977</guid>
		<description><![CDATA[there is also a predefined function &quot;strstr&quot; defined in string.h]]></description>
		<content:encoded><![CDATA[<p>there is also a predefined function &#8220;strstr&#8221; defined in string.h</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hitesh Dhanwani</title>
		<link>https://www.emblogic.com/blog/07/3893/#comment-973</link>
		<dc:creator><![CDATA[Hitesh Dhanwani]]></dc:creator>
		<pubDate>Thu, 12 Jul 2012 18:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3893#comment-973</guid>
		<description><![CDATA[the example posted on the above comment includes white spaces which were compressed after posting .. so dont go through it]]></description>
		<content:encoded><![CDATA[<p>the example posted on the above comment includes white spaces which were compressed after posting .. so dont go through it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hitesh Dhanwani</title>
		<link>https://www.emblogic.com/blog/07/3893/#comment-972</link>
		<dc:creator><![CDATA[Hitesh Dhanwani]]></dc:creator>
		<pubDate>Thu, 12 Jul 2012 18:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3893#comment-972</guid>
		<description><![CDATA[3. in case it doesnt then match the first char of short string with second char of string ..
nd whenever the total no of consecutive matches is equal to the length of short string.you have got a match . juhst to give u an idea :

E.g long string : &quot;i am a programmer&quot;
e.g. short string : &quot;programmer&quot;

now match the first char
i am a programmer
&#124;
p

doesnt matches move to the right in long string

i am a programmer
 &#124;
 p

doesnt match move right

keep moving till ur first char of short string matches
u&#039;ll reach a stage like this

i am a programmer
       &#124;
       p               matched character = 1

i am a programmer
       &#124;&#124;
       pr               matched character = 2


i am a programmer
       &#124;&#124;&#124;
       pro              matched character =3

similarly

i am a programmer
       &#124;&#124;&#124;&#124;&#124;&#124;&#124;&#124;&#124;&#124;
       programmer   
matched character = 10 =length of the short string . now you have got ur first short string in the long string .. which is the only one in this case .. keep shifting throughout the length of the short string or to optimize your program you can shift till

 (length of the long string - length of the short string)

Note:there are other string matching algorithms as well .. u might have studied it in Design and analysis of algorithm if you are a CSE student .

:) keep commenting if you find any problem .]]></description>
		<content:encoded><![CDATA[<p>3. in case it doesnt then match the first char of short string with second char of string ..<br />
nd whenever the total no of consecutive matches is equal to the length of short string.you have got a match . juhst to give u an idea :</p>
<p>E.g long string : &#8220;i am a programmer&#8221;<br />
e.g. short string : &#8220;programmer&#8221;</p>
<p>now match the first char<br />
i am a programmer<br />
|<br />
p</p>
<p>doesnt matches move to the right in long string</p>
<p>i am a programmer<br />
 |<br />
 p</p>
<p>doesnt match move right</p>
<p>keep moving till ur first char of short string matches<br />
u&#8217;ll reach a stage like this</p>
<p>i am a programmer<br />
       |<br />
       p               matched character = 1</p>
<p>i am a programmer<br />
       ||<br />
       pr               matched character = 2</p>
<p>i am a programmer<br />
       |||<br />
       pro              matched character =3</p>
<p>similarly</p>
<p>i am a programmer<br />
       ||||||||||<br />
       programmer<br />
matched character = 10 =length of the short string . now you have got ur first short string in the long string .. which is the only one in this case .. keep shifting throughout the length of the short string or to optimize your program you can shift till</p>
<p> (length of the long string &#8211; length of the short string)</p>
<p>Note:there are other string matching algorithms as well .. u might have studied it in Design and analysis of algorithm if you are a CSE student .</p>
<p> <img src="https://www.emblogic.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  keep commenting if you find any problem .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hitesh Dhanwani</title>
		<link>https://www.emblogic.com/blog/07/3893/#comment-970</link>
		<dc:creator><![CDATA[Hitesh Dhanwani]]></dc:creator>
		<pubDate>Thu, 12 Jul 2012 18:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=3893#comment-970</guid>
		<description><![CDATA[There are various ways of string matching ...
one of them is (which i implemented in my program) :

e.g. &quot;the algorithm of the program is here&quot; 
suppose we have to find number of occurences of &quot;the&quot;
1.match the char of &quot;the&quot; with the first char of entered string 
&#039;t&#039; matches 
2. if it matches den match the second char]]></description>
		<content:encoded><![CDATA[<p>There are various ways of string matching &#8230;<br />
one of them is (which i implemented in my program) :</p>
<p>e.g. &#8220;the algorithm of the program is here&#8221;<br />
suppose we have to find number of occurences of &#8220;the&#8221;<br />
1.match the char of &#8220;the&#8221; with the first char of entered string<br />
&#8216;t&#8217; matches<br />
2. if it matches den match the second char</p>
]]></content:encoded>
	</item>
</channel>
</rss>
