Aryaz Eghbali
Aryaz Eghbali
Improved the efficiency by removing the rank attribute as with Path Compression there is no need for Union by rank. Also added amortized running time description. ### Describe your change:...
ShareCode.io is an online judge and contains a diverse set of problems
I have to transform (using a libcst.CSTTransformer) some 3rd party code, which might contain statements like `assert("foo") == "foo"`. Although this is a valid python code, I get the error...
In the client's `_event_cleanup` popping items during iteration could cause missing events if two adjacent events in the list are to be removed. Iterating in reverse fixes this issue.
#### Reference issue #### What does this implement/fix? This PR ensures that the lists provided to some path planning algorithms are all `int`s and not a mix of `float` and...
#### Reference issue None #### What does this implement/fix? This improves performance by transforming `calculated` into a set. As the only use is to check if a value is already...
https://github.com/AtsushiSakai/PythonRobotics/blob/ad600cd9023e67cd8064b678213d6586d076dd15/PathPlanning/AStar/a_star_searching_from_two_side.py#L80C1-L117C20 In the above function the search for coordinates and neighbors in `ob_list` and `neighbors` happens very often, specially for long obstacles. It would be more efficient to store the...
## Description What was changed in this pull request? Checking types should be done with `isinstance` or `is` and not`==`. This PR fixes that. Why is it necessary? It is...
## Description What was changed in this pull request? The initial values inserted into `nan_data_buffers` were of type `numpy.int64`, and now they are cast to `numpy.float64`. Why is it necessary?...
https://github.com/higlass/clodius/blob/55061be320841be671beba89274afcb09341e553/clodius/cli/aggregate.py#L1054 While running a dynamic analysis, I found out that although `ct.aggregate` ensures `numpy.floating` type, the values already inside `nan_data_buffers` are of type `numpy.int64`.