Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JillCeke

    Binary search tree questions, please help =)

    I have some questions about certain placement of child nodes since I'm just learning BSTs and it's quite confusing even after reading some sources and doing some online insertion applets. Let's say I want to add nodes 5,7,3,4 to an empty basic BST. Ok I understand that the left child must be...
  2. JillCeke

    Basic and Balance BST insertion node placement

    Hi, I have some questions about certain placement of child nodes since I'm just learning BSTs and it's quite confusing even after reading some sources and doing some online insertion applets. Let's say I want to add nodes 5,7,3,4 to an empty basic BST. add 5 5 add 7 5 7...
  3. JillCeke

    Awk pattern matching movie edition

    Sorry typo. My second file code is actually this: NR==1 || $1==prevkey {total = total + $NF} NR>1 && $1!=prevkey {print prevname, total; total = $NF} {prevkey = $1; $1 = ""; $NF = ""; prevname = $0} END {print prevname, total}
  4. JillCeke

    Awk pattern matching movie edition

    I tried to extract the actors' names and use them as keys using a file i created: NF==3 {print $2 $1, $0} NF==4 {print $3 $1 $2, $0} Now I tried to sort them but I totally lost on the looping structure. Here is my second file I created to code the loop NF==3 {print $2 $1, $0} NF==4 {print $3...
  5. JillCeke

    Awk pattern matching movie edition

    Hi, I'm very new to these forums. I was wondering if someone could help an AWK beginner with a pattern matching an actor to his appearance in movies, which would be stored as records. Let's say we have a database of 4 movies and need to pattern match and actor's name and return his name...

Part and Inventory Search

Back
Top