What is the earliest female-portrayed AI in the StarTrek franchise that was a villain?
How about the earliest female-portrayed AI in the StarTrek franchise that was not just a villiain but was actually "in charge of" whatever the Federation was at odds with at the moment? (For example you have episodes like "I, Mudd", where "Alices" were causing problems, but "Norman" was actually running the show, so they wouldn't count for this).
How about the first episode with an _alien_ (Non Federation) AI? Alien Female AI?