Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.17 KB

rec_table_construc_finalv3.rst

File metadata and controls

40 lines (29 loc) · 1.17 KB

rec_table_construct_final

def rec_table_construct_final(table,base,lvl)

Algorithm

Recursive Construction method from the Base table. The recursive algorithm manage array building since 2 levels of recursive construction. => Do not use for the first recursive building loop

Parameters

Type

Description

table list

The first recursive level builded Base table

base int

The base to treat as integer

lvl int

The level of recursivity in construction

Returns

list : The fully specified level recursivity builded Base table

Source Code

res=[]
basetable=table[0:base]
for i in range(0,len(basetable)):
    basetable[i]=basetable[i][lvl:]
for eat in basetable:
    for this in table:
        res.append(eat+this)
return res