I use ps ef and ps rf a lot.
ps ef
ps rf
Here is a sample output for ps rf:
PID TTY STAT TIME COMMAND 3476 pts/0
From key words KEYWORD
ps aux | grep -i KEYWORD | grep -v grep | awk '{print $2}'|sort -h|head -1|xargs kill
BTW, is this assumption that parent process ID is the smallest ID valid????