1. 3
  1.  

  2. 1

    If I remember correctly, DFA is regex-directed, whereas NFA is text-directed, which explains the curves. It isn’t uncommon in modern programming languages to switch between both engines as they see fit