If a professor analyzed my work, does the university own my idea?
This is a good question for the legal department at your university. At the university where I teach, there is a standard software license agreement form that I sign with students to basically ensure that software is owned by everyone at the end of the class. But your university will likely have its own rules and policies. If you have your own attorney, you can work with the university to modify such agreements.