Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: David Lovemore Newsgroups: comp.compilers Subject: Re: An added line to Tarjan's SCC algorithm in Muchnik's Advanced Compiler Design Date: Fri, 17 Aug 2018 00:01:13 -0700 (PDT) Organization: Compilers Central Lines: 17 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <18-08-003@comp.compilers> References: <18-08-001@comp.compilers> Mime-Version: 1.0 Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="69457"; mail-complaints-to="abuse@iecc.com" Keywords: books Posted-Date: 17 Aug 2018 10:40:00 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <18-08-001@comp.compilers> Xref: csiph.com comp.compilers:2106 On Thursday, August 16, 2018 at 1:41:12 PM UTC+1, woon...@gmail.com wrote: > The official errata for the book, Advanced Compiler Design and Implementation > by Steven Muchnik added, among other fixes, this line to the Tarjan's algorithm > to find maximal strongly connected components (SCCs) from a directed graph. > > All_SCC U= {{Stack[1]}} > > where I replaced with brackets an arrow to mean retrival of an element from a > sequence named Stack. ... I don't have the book, so I can't see implementation of Strong_Components. But I believe the description of the algorithm on wikipedia is correct. I suggest comparing with that. https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm