<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://behalek.cs.vsb.cz/wiki/index.php?action=history&amp;feed=atom&amp;title=Translations%3AFP_Homework_1%2F26%2Fen</id>
	<title>Translations:FP Homework 1/26/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://behalek.cs.vsb.cz/wiki/index.php?action=history&amp;feed=atom&amp;title=Translations%3AFP_Homework_1%2F26%2Fen"/>
	<link rel="alternate" type="text/html" href="http://behalek.cs.vsb.cz/wiki/index.php?title=Translations:FP_Homework_1/26/en&amp;action=history"/>
	<updated>2026-04-21T23:58:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>http://behalek.cs.vsb.cz/wiki/index.php?title=Translations:FP_Homework_1/26/en&amp;diff=2536&amp;oldid=prev</id>
		<title>FuzzyBot: Importing a new version from external source</title>
		<link rel="alternate" type="text/html" href="http://behalek.cs.vsb.cz/wiki/index.php?title=Translations:FP_Homework_1/26/en&amp;diff=2536&amp;oldid=prev"/>
		<updated>2021-10-07T09:31:59Z</updated>

		<summary type="html">&lt;p&gt;Importing a new version from external source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;One possibility, how to code characters into the binary code is to use prefix coding (an example can be  [https://en.wikipedia.org/wiki/Huffman_coding Huffman coding] ). In this coding, a given code is not &amp;#039;&amp;#039;a prefix&amp;#039;&amp;#039; of any other code. If for example, one letter is coded as &amp;lt;code&amp;gt;101&amp;lt;/code&amp;gt;, then no other letter&amp;#039;s code starts with the same sequence &amp;lt;code&amp;gt;101&amp;lt;/code&amp;gt;. In this task, write a function &amp;lt;code&amp;gt;toText&amp;lt;/code&amp;gt;, that takes an encoded binary sequence (in our case &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt; composed from &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;) along with a dictionary, and produces the original text like a result. Dictionary compose of pairs, where each pair contains the encrypted character (&amp;lt;code&amp;gt;Char&amp;lt;/code&amp;gt;) and a sequence (&amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;) of &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; - assigned prefix code. Safely assume, that all inputs are &amp;#039;&amp;#039;&amp;#039;valid&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
		
	</entry>
</feed>