Research Article
[Retracted] Finder-MCTS: A Cognitive Spectrum Allocation Based on Traveling State Priority and Scenario Simulation in IoV
Input: | | Output: | optimal channel allocation matrix | Function Finder-MCTS | 1: load network | 2: create root node with state | 3: create channel allocation buffer | 4: while node is a terminal node do | 5: initialize a matrix with all elements equaling to 0 | 6: | 7: | 8: if for vehicle then | 9: =1 | 10: else | 11: =0 | 12: end if | 13: update and put in | 14: | 15: end while | 16: return | | 17: while is nonterminal do | 18: if is not a leaf node then | 19: | 20: | 21: else | 22: ifthen | 23: | 24: else | 25: | 26: end if | 27: end if | 28: end while | | 29: return | | 30: execute | 31: choose randomly | 32: generate a new child of node | 33: initialize | 34: | 35: | | 36: initialize ,=0 | 37: while is not a terminal node do | 38: choose randomly | 39: , | 40: calculate according to Eq. (2) | 41: ( is calculated based on Eq. (17), (18), (19)) | 42: | 43: end while | 44: return when node reaching to the terminal node | | 45: while node is not null do | 46: | 47: | 48:end while |
|