You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a method to check whether a DDC number is valid, we can provide a simple number building interface with this algorithm:
nextBuildableNotations(notation, maxDepth): // given a start notation, try to add at most maxDepth digits
narrower=[]
for digit in 0...9:
build = notation.length === 3 ? notation + "." + suffix : notation.suffix
if isValidNotation(build): // found a digit that can be added
narrower.push(build)
else if maxDepth > 0: // try adding multiple digits at once
narrower.append(nextNotations(build, maxDepth - 1))
return narrower
This basically results in JSKOS API method narrower for the virtual hierarchy of all possibly composable DDC notations.
The text was updated successfully, but these errors were encountered:
Given a method to check whether a DDC number is valid, we can provide a simple number building interface with this algorithm:
This basically results in JSKOS API method narrower for the virtual hierarchy of all possibly composable DDC notations.
The text was updated successfully, but these errors were encountered: