Automatic visualization of recursion trees: a case study on generic programming
| Autor(a) principal: | |
|---|---|
| Data de Publicação: | 2003 |
| Tipo de documento: | Artigo |
| Idioma: | eng |
| Título da fonte: | Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) |
| Texto Completo: | https://hdl.handle.net/1822/846 |
Resumo: | Although the principles behind generic programming are already well understood, this style of programming is not widespread and examples of applications are rarely found in the literature. This paper addresses this shortage by presenting a new method, based on generic programming, to automatically visualize recursion trees of functions written in Haskell. Crucial to our solution is the fact that almost any function definition can be automatically factorized into the composition of a fold after an unfold of some intermediate data structure that models its recursion tree. By combining this technique with an existing tool for graphical debugging, and by extensively using Generic Haskell, we achieve a rather concise and elegant solution to this problem. |
| id |
RCAP_bb49cbee221ac5f758bb59f6e295db7c |
|---|---|
| oai_identifier_str |
oai:repositorium.sdum.uminho.pt:1822/846 |
| network_acronym_str |
RCAP |
| network_name_str |
Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) |
| repository_id_str |
https://opendoar.ac.uk/repository/7160 |
| spelling |
Automatic visualization of recursion trees: a case study on generic programmingAlthough the principles behind generic programming are already well understood, this style of programming is not widespread and examples of applications are rarely found in the literature. This paper addresses this shortage by presenting a new method, based on generic programming, to automatically visualize recursion trees of functions written in Haskell. Crucial to our solution is the fact that almost any function definition can be automatically factorized into the composition of a fold after an unfold of some intermediate data structure that models its recursion tree. By combining this technique with an existing tool for graphical debugging, and by extensively using Generic Haskell, we achieve a rather concise and elegant solution to this problem.Fundação para a Ciência e a Tecnologia - POSI/CHS/44304/2002.ElsevierUniversidade do MinhoCunha, Alcino20032003-01-01T00:00:00Zinfo:eu-repo/semantics/publishedVersioninfo:eu-repo/semantics/articleapplication/pdfhttps://hdl.handle.net/1822/846engCUNHA, Alcino - Automatic visualization of recursion trees : a case study on generic programming. “Electronic Notes in Theoretical Computer Science” [Em linha]. 86:3 (2003) 1-15. [Consult. 27 Jan. 2005]. Disponível na Internet: http://www.sciencedirect.com/science. ISSN 1571-0661.1571-066110.1016/S1571-0661(04)80694-7info:eu-repo/semantics/openAccessreponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiainstacron:RCAAP2025-04-12T04:29:03Zoai:repositorium.sdum.uminho.pt:1822/846Portal AgregadorONGhttps://www.rcaap.pt/oai/openaireinfo@rcaap.ptopendoar:https://opendoar.ac.uk/repository/71602025-05-28T15:14:09.494400Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiafalse |
| dc.title.none.fl_str_mv |
Automatic visualization of recursion trees: a case study on generic programming |
| title |
Automatic visualization of recursion trees: a case study on generic programming |
| spellingShingle |
Automatic visualization of recursion trees: a case study on generic programming Cunha, Alcino |
| title_short |
Automatic visualization of recursion trees: a case study on generic programming |
| title_full |
Automatic visualization of recursion trees: a case study on generic programming |
| title_fullStr |
Automatic visualization of recursion trees: a case study on generic programming |
| title_full_unstemmed |
Automatic visualization of recursion trees: a case study on generic programming |
| title_sort |
Automatic visualization of recursion trees: a case study on generic programming |
| author |
Cunha, Alcino |
| author_facet |
Cunha, Alcino |
| author_role |
author |
| dc.contributor.none.fl_str_mv |
Universidade do Minho |
| dc.contributor.author.fl_str_mv |
Cunha, Alcino |
| description |
Although the principles behind generic programming are already well understood, this style of programming is not widespread and examples of applications are rarely found in the literature. This paper addresses this shortage by presenting a new method, based on generic programming, to automatically visualize recursion trees of functions written in Haskell. Crucial to our solution is the fact that almost any function definition can be automatically factorized into the composition of a fold after an unfold of some intermediate data structure that models its recursion tree. By combining this technique with an existing tool for graphical debugging, and by extensively using Generic Haskell, we achieve a rather concise and elegant solution to this problem. |
| publishDate |
2003 |
| dc.date.none.fl_str_mv |
2003 2003-01-01T00:00:00Z |
| dc.type.status.fl_str_mv |
info:eu-repo/semantics/publishedVersion |
| dc.type.driver.fl_str_mv |
info:eu-repo/semantics/article |
| format |
article |
| status_str |
publishedVersion |
| dc.identifier.uri.fl_str_mv |
https://hdl.handle.net/1822/846 |
| url |
https://hdl.handle.net/1822/846 |
| dc.language.iso.fl_str_mv |
eng |
| language |
eng |
| dc.relation.none.fl_str_mv |
CUNHA, Alcino - Automatic visualization of recursion trees : a case study on generic programming. “Electronic Notes in Theoretical Computer Science” [Em linha]. 86:3 (2003) 1-15. [Consult. 27 Jan. 2005]. Disponível na Internet: http://www.sciencedirect.com/science. ISSN 1571-0661. 1571-0661 10.1016/S1571-0661(04)80694-7 |
| dc.rights.driver.fl_str_mv |
info:eu-repo/semantics/openAccess |
| eu_rights_str_mv |
openAccess |
| dc.format.none.fl_str_mv |
application/pdf |
| dc.publisher.none.fl_str_mv |
Elsevier |
| publisher.none.fl_str_mv |
Elsevier |
| dc.source.none.fl_str_mv |
reponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia instacron:RCAAP |
| instname_str |
FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia |
| instacron_str |
RCAAP |
| institution |
RCAAP |
| reponame_str |
Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) |
| collection |
Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) |
| repository.name.fl_str_mv |
Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia |
| repository.mail.fl_str_mv |
info@rcaap.pt |
| _version_ |
1833595185798316032 |