<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Scala</anon>
    <anon>30分プログラム</anon>
  </categories>
  <description>30分プログラム、その511。Scalaで優先度付きキューを作ってみよう。 wikipedia:優先度つきキューによると、連想リストとキューを組合せるのが一番楽らしいので、それをそのままScalaに落し込んでやる。ちなみに、Scala Standard Library 2.12.8 - scala.collection.mutable.PriorityQueueというクラスがあるのは知っている。 使い方 val q1 = PriorityQueue[Int]() val q2 = q1.enqueue(0,1).enqueue(0,2).enqueue(-1,3) // 3が一番、優先度が高い…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090120%2FpriorityQueue&quot; title=&quot;Scalaで優先度付きキュー - みずぴー日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-01-20 00:00:00</published>
  <title>Scalaで優先度付きキュー</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20090120/priorityQueue</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
