#ATTENDANCE QUIZ FOR LECTURE 3 of Dr. Z.'s Math454(02) Rutgers University # Please Edit this .txt page with Answers #Email ShaloshBEkhad@gmail.com #Subject: p3 #with an attachment called #p3FirstLast.txt #(e.g. p3DoronZeilberger.txt) #Right after finishing watching the lecture but no later than Sept. 14, 2020, 8:00pm Q1. THE FIRST ATTENDANCE QUESTION WAS: WHAT IS A DERANGEMENT? A1. MY ANSWER TO THE FIRST ATTENDANCE QUESTION IS: According to Wikipedia, a derangement is a permutation of the elements of a set, such that no element appears in its original position. It is a permutation with no set points. Q2. THE SECOND ATTENDANCE QUESTION WAS: Give two examples of WtoS and StoW. A2. MY ANSWER TO THE SECOND ATTENDANCE QUESTION IS: WtoS Examples: - WtoS([1,0,1,0,1,0,1]) = {1,3,5,7} - WtoS([1,1,1,1,1,0,0,0,0,1,0,1]) = {1,2,3,4,5,10,12} StoW Examples: - StoW({1,2,3,4,7},10) = [1,1,1,1,0,0,1,0,0,0] - StoW({1,4,2,8},9) = [1,1,0,1,0,0,0,1,0]