tag:blogger.com,1999:blog-6622840520755071788.post4116014133265540615..comments2024-02-26T02:59:08.201-08:00Comments on On Algorithm Problems: Jogging Trailslbvhttp://www.blogger.com/profile/02965219019669114297noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6622840520755071788.post-57513175297639391452013-03-04T18:26:06.557-08:002013-03-04T18:26:06.557-08:00Thanks for the tip, Manuel.
As I said in a previo...Thanks for the tip, Manuel.<br /><br />As I said in a previous comment, there are many ways to achieve the same thing. I'm aware of the GCC built-ins, but personally I prefer not to use any compiler-specific constructs.<br /><br />Your comment is still welcome, of course, and I think some will find it useful.lbvhttps://www.blogger.com/profile/02965219019669114297noreply@blogger.comtag:blogger.com,1999:blog-6622840520755071788.post-52731764696810096812013-03-04T14:02:38.623-08:002013-03-04T14:02:38.623-08:00Hi lbv, you can use __builtin_clz instead of m37po...Hi lbv, you can use __builtin_clz instead of m37pos array, is a built-in function provided by GCC.Manuel Pinedanoreply@blogger.comtag:blogger.com,1999:blog-6622840520755071788.post-38104996067056656982013-01-21T15:16:10.442-08:002013-01-21T15:16:10.442-08:00Do you have any recommendation? I'd change it ...Do you have any recommendation? I'd change it if I knew something better, but as of now I use this one because it's one of the easier ones to setup and I don't see many problems with it.<br /><br />I'm not sure what are those huge empty spaces you refer to... what browser do you use?lbvhttps://www.blogger.com/profile/02965219019669114297noreply@blogger.comtag:blogger.com,1999:blog-6622840520755071788.post-54659718930085979232013-01-21T15:14:11.846-08:002013-01-21T15:14:11.846-08:00Hi,
Sorry for the late reply, but I just noticed ...Hi,<br /><br />Sorry for the late reply, but I just noticed this comment (blogger thought it was spam).<br /><br />The m37pos array is not strictly necessary, it's just one of the ways to calculate the CTZ (count of trailing zeroes), and it's explained in the Bit Twiddling Hacks page I mentioned. However, there are other ways to do the same thing, so you can use whatever is most comfortable for you.<br /><br />About the D.P function, "f" should be called initially with a bitmask that represents all the nodes that have an odd degree.lbvhttps://www.blogger.com/profile/02965219019669114297noreply@blogger.comtag:blogger.com,1999:blog-6622840520755071788.post-36721678600019440372012-10-17T14:28:05.081-07:002012-10-17T14:28:05.081-07:00and Please use other syntax highlighter if possibl...and Please use other syntax highlighter if possible as this highlighter show huge empty spaces which is odd to look !! আহমদ ফাইয়াজhttps://www.blogger.com/profile/13247134024136987429noreply@blogger.comtag:blogger.com,1999:blog-6622840520755071788.post-89788177231543259592012-10-17T14:23:47.171-07:002012-10-17T14:23:47.171-07:00great writing.. but i am confused that why do we n...great writing.. but i am confused that why do we need m37pos[] ?<br />and how we should call the dp function ?আহমদ ফাইয়াজhttps://www.blogger.com/profile/13247134024136987429noreply@blogger.com