📄 node.sci
字号:
function index = node(d,b)
// node -- Tree indexing function
// Usage
// index = node(d,b)
// Inputs
// d depth from root of tree
// b index among the 2^d possibilities
// in a left-right scan at that depth
// Outputs
// index linear index of node in tree structure
//
// Copyright Aldo I Maalouf
index = 2^d + b;
endfunction
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -