Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discr tree multivar #214

Merged
merged 38 commits into from
May 27, 2024
Merged

Discr tree multivar #214

merged 38 commits into from
May 27, 2024

Conversation

FissoreD
Copy link
Collaborator

@FissoreD FissoreD commented Dec 7, 2023

Goal:
if L = [1,2,3] is a list, then the corresponding path used for indexing with discrimination tree is
[Cons_2, Primitive, Cons_2, Primitive, Cons_2, Primitive, Nil_0] where Cons_2 (resp Nil_0) tells that we
are dealing with a constant of name Cons (resp. Nil) of arity 2 (resp. 0)
In this encoding in each list, half of the size of the path is used for Cons_2 and Nil_0.
With this PR, we reduce the size of the path by adding two special marker for the Head and the End of a list and
remove all the Cons_2 and Nil_0.
The path for the list L will be encoded as [ListHead, Primitive, Primitive, Primitive, ListEnd]

@gares gares force-pushed the discr-tree-multivar branch from d0330a1 to b7f7f77 Compare December 7, 2023 15:06
@FissoreD FissoreD force-pushed the discr-tree-multivar branch from b601b85 to 204f3d4 Compare May 24, 2024 13:59
src/discrimination_tree.mli Outdated Show resolved Hide resolved
src/discrimination_tree.mli Outdated Show resolved Hide resolved
@gares
Copy link
Contributor

gares commented May 27, 2024

It seems the branch needs to be rebased

@FissoreD FissoreD force-pushed the discr-tree-multivar branch from 204f3d4 to 4923df2 Compare May 27, 2024 12:10
@FissoreD
Copy link
Collaborator Author

FissoreD commented May 27, 2024

It seems the branch needs to be rebased

It is ok now

@gares gares merged commit 500e684 into LPCIC:master May 27, 2024
8 of 9 checks passed
@FissoreD FissoreD deleted the discr-tree-multivar branch May 27, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants