-
Notifications
You must be signed in to change notification settings - Fork 3
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
Execution efficiency; complexity analysis #25
Comments
I have in mind a "lazy" approach for parallelism cases. Assuming the following axioms for
If you have Calculating complexity, the first rewriting will create a list of size |
Ok, I think I get what you are talking about here. You say that for every action that happens in a parallelism operator, we'll need to do a rewriting of complexity Yes, you are completely right here. Further, there are other sequence-processing operations that happen during the rewritings that are proportional to the operators' size: this for example. I was not keeping in mind the complexity of the program while developing this solution. However, I do not think this should be an immediate concern: definitely something to think about, but not likely to cause troubles in foreseeable future. Or were there troubles of some kind with Toolbus and PSF? |
By the way, following this logic, SubScript also does not have an Very roughly, the complexity of SubScript is |
There have been rewriting approaches to ACP before, such as in Toolbus and PSF. Those were not successful:
AFAIK SubScript VM's complexity is
O(n)
, that is: execution overhead is proportional to the program size (code fragments, special elements, calls, operators).I have the impression that Free-ACP will have complexity
O(n^2)
or worse.Consider for instance
k
processes in a parallel composition, that each performm
actions in sequence. Sayn = m*k
.Free-ACP will start with constructing a k-fold choice, namely: what process should start. Each choice contains a starting action, followed by another parallel composition, etc.
It seems that for each step you will have a k-fold overhead. So the complexity may be as bad as
O(k*n)
which is almostO(n^2)
.Is that true? Or will complexity be worse or better?
The text was updated successfully, but these errors were encountered: