FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Explain Recursive Structure Finding Algorithms
NewsMachine Learning

Explain Recursive Structure Finding Algorithms

via Dev.toLucian Green13h ago

Courtesy ChatGPT: Explain Spec to Algorithm’s Context Free Grammar Generator’s top-down and bottom-up recursive structure finding algorithms. The top down algorithm is: find_lists3a ( L1 , L32 , Rest ) :- find_lists3 ( L1 ,[], L91 , _Rest_a ), ( fail -> ( L4 = _L92 , Flag = true ); ( L4 = L91 , Flag = false )), ( L4 = [] -> L4 = L3 ; ( L4 = [ _L2 ] -> L4 = L3 ; ( L4 = [ L2 | L31 ], check14 ( L31 , L2 ,[], L5 , Rest ), ( L5 = [[ '&r' | _ ]| _ ] -> L5 = L3 ; (( L5 = [ L51 ] -> true ; L51 = L5 ), L3 = [[ '&r' , L51 ]])) ))), ( Flag = true -> L32 = [[ '&r' , L3 ]]; L32 = L3 ), !. find_lists3 ([], L , L , _ ) :- !. find_lists3 ( L1 , L2 , L3 , Rest ) :- repeating_unit ( L1 , U , Rest ), ( U = [ '&r' , U1 ] -> try ( U1 , U2 ); U2 = U ), append ( L2 ,[[ '&r' , U2 ]], L3 ). match_char ( "[" , "]" ). match_char ( "(" , ")" ). match_char ( "{" , "}" ). match_char ( A , A ). find_lists3 ( L1 , L2 , L3 , Rest ) :- L1 = [ L4 | L5 ], match_char ( L4 , L41 ), find_lists4 ( L2 , L5 , L4 , L41 , L3 , R

Continue reading on Dev.to

Opens in a new tab

Read Full Article
4 views

Related Articles

Brompton Electric T-Line Folding Electric Bicycle Review: Pocket-Sized Pedal Power
News

Brompton Electric T-Line Folding Electric Bicycle Review: Pocket-Sized Pedal Power

Wired • 12h ago

News

Gothub is live

Lobsters • 12h ago

I Built the Tool I Wish I Had When I Started My Open Source Journey
News

I Built the Tool I Wish I Had When I Started My Open Source Journey

Medium Programming • 12h ago

Razer Boomslang 20th Anniversary Mouse Review: For Collectors
News

Razer Boomslang 20th Anniversary Mouse Review: For Collectors

Wired • 13h ago

How Bug Bounty Hunters Prioritize 10,000 Recon Targets (Without Losing Their Mind)
News

How Bug Bounty Hunters Prioritize 10,000 Recon Targets (Without Losing Their Mind)

Medium Programming • 13h ago

Discover More Articles