<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>comp.lang.c++ Google Group</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++</link>
  <description>The object-oriented C++ language.</description>
  <language>en</language>
  <item>
  <title>Re: Math/CompSci Interview Question - Thoughts?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/de4a49e73c1163ea?show_docid=de4a49e73c1163ea</link>
  <description>
  &amp;lt;snipped&amp;gt; &lt;br&gt; Being a bit stupid I first would ask &amp;quot;Why? What do you do with it?&amp;quot; &lt;br&gt; and then I would pick on random. I am almost certain, that even at &lt;br&gt; a low number of draws the chance to get the very integer is higher &lt;br&gt; than implementing an algo without coding errors.
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/de4a49e73c1163ea?show_docid=de4a49e73c1163ea</guid>
  <author>
  &amp;nore...@axelvogt.de
  (Axel Vogt)
  </author>
  <pubDate>Sat, 21 Nov 2009 22:07:31 UT
</pubDate>
  </item>
  <item>
  <title>Re: Math/CompSci Interview Question - Thoughts?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/bc89c5da91581641?show_docid=bc89c5da91581641</link>
  <description>
  * Bill Dubuque: &lt;br&gt; Hiya. Could you please explain the above more optimal solution. I&#39;m unfamiliar &lt;br&gt; with the notation and not from a top-tier school, but in my experience anything &lt;br&gt; that&#39;s not nonsense can be visualized or explained in simple terms (e.g., Albert &lt;br&gt; Einstein did that beautifully with his book on special relativity, which except
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/bc89c5da91581641?show_docid=bc89c5da91581641</guid>
  <author>
  al...@start.no
  (Alf P. Steinbach)
  </author>
  <pubDate>Sat, 21 Nov 2009 21:53:29 UT
</pubDate>
  </item>
  <item>
  <title>Re: Math/CompSci Interview Question - Thoughts?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/b6f12b554931a92e?show_docid=b6f12b554931a92e</link>
  <description>
  I disagree. Saying that it&#39;s a puzzle rather than a programming problem &lt;br&gt; seems to imply that the solution is ad-hoc, rather than a special case &lt;br&gt; of some more universal technique. But that is not true here. Namely, &lt;br&gt; the proposed solution follows immediately from the obvious fact that &lt;br&gt; majority elts on product sets are preserved by component projections.
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/b6f12b554931a92e?show_docid=b6f12b554931a92e</guid>
  <author>
  w...@nestle.csail.mit.edu
  (Bill Dubuque)
  </author>
  <pubDate>Sat, 21 Nov 2009 21:33:03 UT
</pubDate>
  </item>
  <item>
  <title>Re: How to get an insertion hint for an unordered associated container?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/21e47512ffcaf8a2/bf984c901685e37e?show_docid=bf984c901685e37e</link>
  <description>
  On Nov 21, 10:34 pm, Pavel &lt;br&gt; Hi Pavel &lt;br&gt; AFAIK, the Unordered associative containers provide an ability for &lt;br&gt; fast retrieval &lt;br&gt; of data based on keys. As you know an - ordered - map is designed and &lt;br&gt; implemented &lt;br&gt; using Binary tree, so the complexity of retriving data is O(log n). In &lt;br&gt; the case of &lt;br&gt; unordered map, because it uses some hashing function, no comparision
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/21e47512ffcaf8a2/bf984c901685e37e?show_docid=bf984c901685e37e</guid>
  <author>
  amrollahi.sa...@gmail.com
  (Saeed Amrollahi)
  </author>
  <pubDate>Sat, 21 Nov 2009 21:16:53 UT
</pubDate>
  </item>
  <item>
  <title>How to get an insertion hint for an unordered associated container?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/21e47512ffcaf8a2/0e572817cc8905d0?show_docid=0e572817cc8905d0</link>
  <description>
  I am trying to figure out if I can use tr1/C++0x std::unordered_map to &lt;br&gt; speed-up an algorithm I did before using an ordered map. &lt;br&gt; The problem is quite common: &lt;br&gt; BEGIN &lt;br&gt; Given a key &#39;k&#39;, if no equivalent of &#39;k&#39; is on the container, create &lt;br&gt; value and insert it; otherwise, update part of the value that is already
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/21e47512ffcaf8a2/0e572817cc8905d0?show_docid=0e572817cc8905d0</guid>
  <author>
  pauldontspamt...@removeyourself.dontspam.yahoo
  (Pavel)
  </author>
  <pubDate>Sat, 21 Nov 2009 19:34:15 UT
</pubDate>
  </item>
  <item>
  <title>Re: Article on possible improvements to C++</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/e46e9b3e07711d05/60fa546b171d7575?show_docid=60fa546b171d7575</link>
  <description>
  It&#39;s of no use if the client code wants to know about the failure in few &lt;br&gt; higher-level callers. Of course you can create a class for every &lt;br&gt; overloaded + operator that can overflow, create a method &amp;quot;onOverflow()&amp;quot; &lt;br&gt; in it etc. but what level of cooperation would it require from the &lt;br&gt; client code to add and remove interested parties?
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/e46e9b3e07711d05/60fa546b171d7575?show_docid=60fa546b171d7575</guid>
  <author>
  pauldontspamt...@removeyourself.dontspam.yahoo
  (Pavel)
  </author>
  <pubDate>Sat, 21 Nov 2009 19:02:03 UT
</pubDate>
  </item>
  <item>
  <title>Re: Math/CompSci Interview Question - Thoughts?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/7e9e2b3bb4198774?show_docid=7e9e2b3bb4198774</link>
  <description>
  In article &amp;lt;6a8340b8-19b0-4fda-96d5-e744a ead1...@m26g2000yqb.googlegrou p &lt;br&gt; s.com&amp;gt;, Andrew Tomazos &amp;lt;and...@tomazos.com&amp;gt; writes &lt;br&gt; This sort of problem is covered by articles on Data Stream Processing in &lt;br&gt; CACM Oct 2009. (CACM is a lot more interesting these days than it was &lt;br&gt; some years ago). There are some very neat ideas in there, of which the
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/7e9e2b3bb4198774?show_docid=7e9e2b3bb4198774</guid>
  <author>
  mcdowe...@nospam.co.uk
  (A.G.McDowell)
  </author>
  <pubDate>Sat, 21 Nov 2009 18:46:21 UT
</pubDate>
  </item>
  <item>
  <title>Re: Math/CompSci Interview Question - Thoughts?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/6755bf1370f0a809?show_docid=6755bf1370f0a809</link>
  <description>
  On Sat, 21 Nov 2009 08:12:53 -0800 (PST), Andrew Tomazos &lt;br&gt; [snip code] &lt;br&gt; I hope &amp;quot;masters-equivilant&amp;quot; isn&#39;t on your resume. &lt;br&gt; &lt;p&gt;Probably not, but that is not necessarily a good thing. &lt;br&gt; That&#39;s an interesting question with an interesting &lt;br&gt; presupposition. The first thing to understand is that this is a &lt;br&gt; puzzle rather than a programming problem. The presupposition is
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/6755bf1370f0a809?show_docid=6755bf1370f0a809</guid>
  <author>
  c...@tiac.net
  (Richard Harter)
  </author>
  <pubDate>Sat, 21 Nov 2009 18:33:38 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why do some code bases don&#39;t use exceptions?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/c255001068888229/b311d5af9ec3652d?show_docid=b311d5af9ec3652d</link>
  <description>
  I was referring to an &amp;quot;unprecedented amount&amp;quot;. I mean if we disregard &lt;br&gt; the known trolls. I do not regard the OP as a troll, so it made me very &lt;br&gt; sad to see so many bad assumptions.
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/c255001068888229/b311d5af9ec3652d?show_docid=b311d5af9ec3652d</guid>
  <author>
  wo...@freemail.hu
  (White Wolf)
  </author>
  <pubDate>Sat, 21 Nov 2009 17:46:55 UT
</pubDate>
  </item>
  <item>
  <title>Re: Defining hash-keys?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/5ecbd9d1f6cef507/eaa0986165497109?show_docid=eaa0986165497109</link>
  <description>
  * James Kanze: &lt;br&gt; It depends. Like how exactly the hash table handles collisions (search for next &lt;br&gt; available, overflow list, what?), and whether values tend to be bundled in small &lt;br&gt; intervals. I think doing the randomization thing is safest, but considering how &lt;br&gt; it might lead to excessive paging I&#39;m not even sure about that -- depends also
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/5ecbd9d1f6cef507/eaa0986165497109?show_docid=eaa0986165497109</guid>
  <author>
  al...@start.no
  (Alf P. Steinbach)
  </author>
  <pubDate>Sat, 21 Nov 2009 17:34:39 UT
</pubDate>
  </item>
  <item>
  <title>Re: Math/CompSci Interview Question - Thoughts?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/3f7269c65f9bea33?show_docid=3f7269c65f9bea33</link>
  <description>
  There is an old analysis of this problem by Fischer and Salzberg. &lt;br&gt; M.J. Fisher and S.L. Salzberg (1982) &lt;br&gt; Finding a majority among n votes. &lt;br&gt; Journal of Algorithms 3, pp 143-152. &lt;br&gt; If 2k elements contain a majority element (= an element that occurs at &lt;br&gt; least k+1 times), then you can find it with 3k-2 element comparisons
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/3f7269c65f9bea33?show_docid=3f7269c65f9bea33</guid>
  <author>
  gwo...@figipc78.tu-graz.ac.at
  (GJ Woeginger)
  </author>
  <pubDate>Sat, 21 Nov 2009 17:29:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: Math/CompSci Interview Question - Thoughts?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/8a56560174359123?show_docid=8a56560174359123</link>
  <description>
  If what you&#39;re asking is whether anybody having a master in CS and &lt;br&gt; maths would have been able to come up with this solution in the &lt;br&gt; interview time, I guess we can answer that definitely no, otherwise &lt;br&gt; there would be no point in trying to select candidates with this test. &lt;br&gt; Obviously, it&#39;s because some people (with or without a master diploma,
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/a1cffd71c99a2dd0/8a56560174359123?show_docid=8a56560174359123</guid>
  <author>
  p...@informatimago.com
  (Pascal J. Bourguignon)
  </author>
  <pubDate>Sat, 21 Nov 2009 17:24:10 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why do some code bases don&#39;t use exceptions?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/c255001068888229/9d98e867714754e1?show_docid=9d98e867714754e1</link>
  <description>
  Just a linguistic nit, but formally, &amp;quot;unprecedented&amp;quot; means that &lt;br&gt; there is no precedent---no one has done it before. Given this &lt;br&gt; definition, I wouldn&#39;t call posting a web page on a subject you &lt;br&gt; know nothing about exactly &amp;quot;unprecedented&amp;quot;:-). &lt;br&gt; Not that that that changes anything with regards to your &lt;br&gt; argument.
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/c255001068888229/9d98e867714754e1?show_docid=9d98e867714754e1</guid>
  <author>
  james.ka...@gmail.com
  (James Kanze)
  </author>
  <pubDate>Sat, 21 Nov 2009 16:50:02 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why do some code bases don&#39;t use exceptions?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/c255001068888229/3021cce4a29afcb7?show_docid=3021cce4a29afcb7</link>
  <description>
  What is the perceived problem? And why is aborting (as a &lt;br&gt; default behavior) a bad solution? Violating an exception &lt;br&gt; specification is a contract violation, so aborting *is* about &lt;br&gt; the only appropriate default behavior. The question is: what &lt;br&gt; problem is solved by supporting contracts in which a function
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/c255001068888229/3021cce4a29afcb7?show_docid=3021cce4a29afcb7</guid>
  <author>
  james.ka...@gmail.com
  (James Kanze)
  </author>
  <pubDate>Sat, 21 Nov 2009 16:45:48 UT
</pubDate>
  </item>
  <item>
  <title>Re: Defining hash-keys?</title>
  <link>http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/5ecbd9d1f6cef507/a45b76adf005406c?show_docid=a45b76adf005406c</link>
  <description>
  std::map will take an std::vector&amp;lt;int&amp;gt; as a key. No need to &lt;br&gt; convert to string. (The access will still be O(lg n), rather &lt;br&gt; than O(1), but that&#39;s often enough.)
  </description>
  <guid isPermaLink="true">http://groups.google.com.nf/group/comp.lang.c++/browse_thread/thread/5ecbd9d1f6cef507/a45b76adf005406c?show_docid=a45b76adf005406c</guid>
  <author>
  james.ka...@gmail.com
  (James Kanze)
  </author>
  <pubDate>Sat, 21 Nov 2009 16:34:43 UT
</pubDate>
  </item>
  </channel>
</rss>
