<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Projects Log &#187; useless</title>
	<atom:link href="http://dev.pulsed.net/wp/?cat=24&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://dev.pulsed.net/wp</link>
	<description>projects, diy</description>
	<lastBuildDate>Mon, 25 Jul 2011 11:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Useless Dichotomic Morse to Human converter</title>
		<link>http://dev.pulsed.net/wp/?p=28</link>
		<comments>http://dev.pulsed.net/wp/?p=28#comments</comments>
		<pubDate>Fri, 17 Aug 2007 13:51:24 +0000</pubDate>
		<dc:creator>Kevin DEHLINGER</dc:creator>
				<category><![CDATA[easy]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[useless]]></category>

		<guid isPermaLink="false">http://dev.pulsed.net/wp/?p=28</guid>
		<description><![CDATA[I&#039;m using the binary decision tree approach to convert Morse Code to &#034;Human&#034;

Here&#039;s a part of the tree (not complete)


Lets decipher &#034;â€” Â· â€”&#034;:
First mark is a dash -> next level and right node
Second mark is a dot -> next level and left node
Third mark is a dash -> next level and right node
&#034;â€” Â· [...]]]></description>
			<content:encoded><![CDATA[<p>I&#039;m using the binary decision tree approach to convert Morse Code to &#034;Human&#034;<br />
<br />
Here&#039;s a part of the tree (not complete)<br />
<img src="http://dev.pulsed.net/misc/dich2.png" alt="Binary Tree" /><br />
<br />
Lets decipher &#034;â€” Â· â€”&#034;:<br />
First mark is a dash -> next level and right node<br />
Second mark is a dot -> next level and left node<br />
Third mark is a dash -> next level and right node<br />
&#034;â€” Â· â€”&#034; = K</p>
<div style="border: 1px dashed #708090; background-color: #add8e6">
	<code>use strict;</code><br />
	<code></code><br />
	<code>my $index;</code><br />
	<code>while(&lt;&gt;)</code><br />
	<code>{</code><br />
	<code>chomp;</code><br />
	<code>for(split / +/)</code><br />
	<code>{</code><br />
	<code>$index=0;</code><br />
	<code>for(split //)</code><br />
	<code>{</code><br />
	<code></code><br />
	<code>{</code><br />
	<code>$index=($index+1)*2-1;</code><br />
	<code>}</code><br />
	<code></code><br />
	<code>{</code><br />
	<code>$index=($index+1)*2;</code><br />
	<code>}</code><br />
	<code>else</code><br />
	<code>{</code><br />
	<code>print &quot; &quot;;</code><br />
	<code>$index=0;</code><br />
	<code>}</code><br />
	<code>}</code><br />
	<code>print @morse_table[$index-1] if $index&gt;0;</code><br />
	<code>$index=0;</code><br />
	<code>}</code><br />
	<code>print $/;</code><br />
	<code>}</code>
</div>
<p>	<strong>Download this code:</strong> <a href="http://dev.pulsed.net/wp/code/morse.pls">morse.pls</a>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://dev.pulsed.net/wp/?feed=rss2&amp;p=28</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
