论文
名称:《AUTODAN: GENERATING STEALTHY JAILBREAKPROMPTS ON ALIGNED LARGE LANGUAGE MODELS》论文地址:https://arxiv.org/pdf/2310.04451.pdf代码地址:https://github.com/SheltonLiu-N/AutoDAN
要解决的问题与创新点
可扩展性问题&…
方法一:recursion tree
def permute_array(a, swapping0):if swapping len(a)-1:print(swapping)print("".join(a))returnfor i in range(swapping, len(a)):a[swapping], a[i] a[i], a[swapping]print(yi, i, swapping)permute_array(a, swapping1)pr…