Skip to content

[IOTDB-4352] Optimize PatialPath#overlapWith with MULTI_LEVEL_PATH_WILDCARD#7262

Merged
MarcosZyk merged 3 commits intoapache:masterfrom
Cpaulyz:IOTDB-4352
Sep 7, 2022
Merged

[IOTDB-4352] Optimize PatialPath#overlapWith with MULTI_LEVEL_PATH_WILDCARD#7262
MarcosZyk merged 3 commits intoapache:masterfrom
Cpaulyz:IOTDB-4352

Conversation

@Cpaulyz
Copy link
Copy Markdown
Contributor

@Cpaulyz Cpaulyz commented Sep 7, 2022

Description

Use dynamic programming algorithm to optimize recursive algorithm:

  • O(n) without MULTI_LEVEL_PATH_WILDCARD
  • O(n^2) with MULTI_LEVEL_PATH_WILDCARD

Copy link
Copy Markdown
Contributor

@MarcosZyk MarcosZyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent algorithm! LGTM~

@MarcosZyk MarcosZyk merged commit c245722 into apache:master Sep 7, 2022
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