<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: What Heaps Can Do That Priority Queues Don&#8217;t	</title>
	<atom:link href="https://www.fluentcpp.com/2018/03/23/3428/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/03/23/3428/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Wed, 02 Jan 2019 21:07:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>
	<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/03/23/3428/#comment-927</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Sun, 15 Apr 2018 13:39:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3428#comment-927</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/03/23/3428/#comment-926&quot;&gt;Malcolm Parsons&lt;/a&gt;.

Thanks for sharing Malcolm!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/03/23/3428/#comment-926">Malcolm Parsons</a>.</p>
<p>Thanks for sharing Malcolm!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Parsons		</title>
		<link>https://www.fluentcpp.com/2018/03/23/3428/#comment-926</link>

		<dc:creator><![CDATA[Malcolm Parsons]]></dc:creator>
		<pubDate>Fri, 13 Apr 2018 16:29:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3428#comment-926</guid>

					<description><![CDATA[I iterate over a subset of a binary heap without using a queue:

&lt;pre&gt;&lt;code&gt;
    size_t nextIndex(const vector&#038; data, size_t n, bool allow_down)
    {
        if (allow_down) {
            // try down
            if (n * 2 + 1 &#060; data.size()) {
                return n * 2 + 1;
            }
        }
        while (n) {
            // try sibling
            if (n &#038; 1 &#038;&#038; n + 1 &#060; data.size()) {
                return n + 1;
            }
            // go up
            n = (n - 1) / 2;
        }
        return n;
    }
&lt;/code&gt;&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I iterate over a subset of a binary heap without using a queue:</p>
<pre><code>
    size_t nextIndex(const vector&amp; data, size_t n, bool allow_down)
    {
        if (allow_down) {
            // try down
            if (n * 2 + 1 &lt; data.size()) {
                return n * 2 + 1;
            }
        }
        while (n) {
            // try sibling
            if (n &amp; 1 &amp;&amp; n + 1 &lt; data.size()) {
                return n + 1;
            }
            // go up
            n = (n - 1) / 2;
        }
        return n;
    }
</code></pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/03/23/3428/#comment-887</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Tue, 27 Mar 2018 06:58:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3428#comment-887</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/03/23/3428/#comment-885&quot;&gt;Andrew Starikov&lt;/a&gt;.

Yes! I&#039;ve fixed it now, thanks Andrew.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/03/23/3428/#comment-885">Andrew Starikov</a>.</p>
<p>Yes! I&#8217;ve fixed it now, thanks Andrew.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andrew Starikov		</title>
		<link>https://www.fluentcpp.com/2018/03/23/3428/#comment-885</link>

		<dc:creator><![CDATA[Andrew Starikov]]></dc:creator>
		<pubDate>Mon, 26 Mar 2018 14:38:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3428#comment-885</guid>

					<description><![CDATA[&quot;resp. writeChild&quot; -&#062; &quot;resp. rightChild&quot; ?]]></description>
			<content:encoded><![CDATA[<p>&#8220;resp. writeChild&#8221; -&gt; &#8220;resp. rightChild&#8221; ?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
