Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Hello
GitLab will be updated tonight at 22:00. Expect short outage.
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
c79a0575
Commit
c79a0575
authored
6 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
improve QS BCS heuristics
parent
789baf30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alib2algo/src/tree/properties/QuickSearchBadCharacterShiftTable.h
+1
-1
1 addition, 1 deletion
...o/src/tree/properties/QuickSearchBadCharacterShiftTable.h
with
1 addition
and
1 deletion
alib2algo/src/tree/properties/QuickSearchBadCharacterShiftTable.h
+
1
−
1
View file @
c79a0575
...
@@ -49,7 +49,7 @@ ext::map < common::ranked_symbol < SymbolType, RankType >, size_t > QuickSearchB
...
@@ -49,7 +49,7 @@ ext::map < common::ranked_symbol < SymbolType, RankType >, size_t > QuickSearchB
if ( symbol == pattern.getSubtreeWildcard ( ) || pattern.getNonlinearVariables ( ).count ( symbol ) || symbol == pattern.getVariablesBar ( ) )
if ( symbol == pattern.getSubtreeWildcard ( ) || pattern.getNonlinearVariables ( ).count ( symbol ) || symbol == pattern.getVariablesBar ( ) )
continue;
continue;
bcs.insert ( std::make_pair ( symbol, pattern.getContent ( ).size ( ) ) );
bcs.insert ( std::make_pair ( symbol, pattern.getContent ( ).size ( )
+ 1
) );
}
}
// find the distance between the end of the pattern and the index
// find the distance between the end of the pattern and the index
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment