0 1 Knapsack Problem In Dynamic Programming Dsa C Corner
The 0/1 Knapsack Problem is one of the most important and frequently asked Dynamic Programming (DP) problems in DSA interviews. It is used to test your understanding of decision making, optimization, and DP table construction. In simple words, this problem is about choosing the best items to put into a bag so that the total value is maximum, without exceeding the bag’s capacity. This article explains the 0/1 Knapsack problem in very simple language, step by step, from basics to interview-level understanding. The word knapsack means a bag. In this problem:
You are given a bag with a fixed capacity Given n items where each item has some weight and profit associated with it and also given a bag with capacity W, [i.e., the bag can hold at most W weight in it]. The task is to put the items into the bag such that the sum of profits associated with them is the maximum possible. Note: The constraint here is we can either put an item completely into the bag or cannot put it at all [It is not possible to put a part of an item into the... Input: W = 4, profit[] = [1, 2, 3], weight[] = [4, 5, 1]Output: 3Explanation: There are two items which have weight less than or equal to 4. If we select the item with weight 4, the possible profit is 1.
And if we select the item with weight 1, the possible profit is 3. So the maximum possible profit is 3. Note that we cannot put both the items with weight 4 and 1 together as the capacity of the bag is 4. Input: W = 3, profit[] = [1, 2, 3], weight[] = [4, 5, 6]Output: 0 A simple solution is to consider all subsets of items and calculate the total weight and value of all subsets. Consider the only subsets whose total weight is smaller than W.
From all such subsets, pick the subset with maximum value. W3Schools offers a wide range of services and products for beginners and professionals, helping millions of people everyday to learn and master new skills. Enjoy our free tutorials like millions of other internet users since 1999 Explore our selection of references covering all popular coding languages Create your own website with W3Schools Spaces - no setup required Test your skills with different exercises
We discussed the fractional knapsack problem using the greedy approach, earlier in this tutorial. It is shown that Greedy approach gives an optimal solution for Fractional Knapsack. However, this chapter will cover 0-1 Knapsack problem using dynamic programming approach and its analysis. Unlike in fractional knapsack, the items are always stored fully without using the fractional part of them. Its either the item is added to the knapsack or not. That is why, this method is known as the 0-1 Knapsack problem.
Hence, in case of 0-1 Knapsack, the value of xi can be either 0 or 1, where other constraints remain the same. 0-1 Knapsack cannot be solved by Greedy approach. Greedy approach does not ensure an optimal solution in this method. In many instances, Greedy approach may give an optimal solution. Problem Statement − A thief is robbing a store and can carry a maximal weight of W into his knapsack. There are n items and weight of ith item is wi and the profit of selecting this item is pi.
What items should the thief take? Given a list of items, each with a weight and a value, determine the maximum value you can achieve without exceeding a given weight capacity (maxWeight). You can only include each item once, and you must decide whether to include or exclude each item. Example Let's take an example where you have the following items: The goal is to maximize the total value of items in the knapsack without exceeding the weight capacity of 5. Approach 1: Recursive (Brute Force) Solution The first approach uses recursion to explore all possible combinations of including or excluding each item.
The basic idea is to try both options for every item and take the maximum value from these choices. Approach 2: Memoization To optimize the recursive approach, we can use memoization. This technique stores the results of subproblems, avoiding redundant calculations. This is an implementation of the 0-1 knapsack problem in C using dynamic programming. The problem consists of a set of items, each with a weight and a value, and a knapsack with a maximum weight capacity. The goal is to determine the subset of items that maximizes the total value of the knapsack without exceeding its weight capacity.
To use this implementation, include the knapsack.c file in your project and call the knapSack() function with the following parameters: The function will return the maximum value that can be put in the knapsack without exceeding its weight capacity. This implementation uses dynamic memory allocation to create a 2D array with variable size, so please remember to free the allocated memory after using the function. The time complexity of this implementation is O(nW) where n is the number of items, W is the knapsack capacity. The space complexity is also O(nW) for the 2D array. This program solves the 0/1 knapsack problem using dynamic programming.
In this problem, we are given a set of items, each with a weight and a value, and a knapsack with a maximum weight capacity. The goal is to determine the maximum value that can be obtained by selecting items without exceeding the weight capacity. The program consists of two main parts: the function for solving the knapsack problem and the main function to handle input and output: The Knapsack Problem is one of the most fundamental problems in algorithm design and dynamic programming. It appears frequently in interviews and competitive programming. Imagine we have a backpack with a maximum capacity of W and N items.
For each item, two values are known: This problem often appears in optimization, combinatorics, algorithms, and programming competitions. Essentially, we are trying to find the best combination of items so that: The item value (v[i]) can represent different things in practice: Although it sounds simple, this problem is very well-known because it is one of the classic examples of dynamic programming. )`� ��3QѦ ���~�G��`.+��Ri�]MG�h��"M�LA�� �ph�i�J�9`�L�:a���*����F ���v;,ܘ2���T�e%��W ����{�L� �L \!��̪y��:G�8������9�WN�碉�)�3kuj��pQ�g�DF�� ����é�zI��⇋�^H��"&�����u\�7GdKy�, �(�|�H ����oqʴ����:l��@b�EX3PH�Di���[[��a����G"���4Ҝ��f:�h��W�K�+X�ּ4���r����}�T!}�}?0��;_3����PJ���5�=����i�v`��qGV�$�F)EA��.����y�v�eKy�P����.�Ʌ��V��B����N�+.\- Mʣ�:v:�-�+����,Kx��zv���][��ɩvh���Kr�����3 F�;�0$f%�i@��7O���^{))dy�W�;�����+N;Q���p�I��p��J�0k�{8��z�09���4� =���f����� B �:zi�����T�+�6!�W�w�XC�~�I��U�(��Jv)���;{^f6YYm�)�����ZV��V2l<)L.Wp�����%� �hqi6�nZ�'��,�\����Vȟ�0M.O��&�'���\���맇ڈXA Q"�Q��Uތ>����4b {���<��9�v������O��˔,�<)�>夠WU��դ�?�xV%eW�V��e�P��ܠ�1 ��:� x9`1Zl\�%u��g�U�t�2���9S�uf�����Ռ�s��9�h�O���2��mvS��b_S�S�<%J��~�E�Cz���7�94=���ط/�z�p��q�W��,�x����:�O ��F��7u���b�)21?L�ˀs9m�?d�(0�[{�犪-6�X���"e`��T!�q�*��yDU��!�S��~Y�~T��1������ӪC�KX_Qf�v�`f�s��-BƬ#���,� r0��x�^��q��yލ��{k�8�O����WG.32���Z1��>\�n6����6�`c)x���ct[�y�pXI]uT�R�/������զ��G��<�%��|UT�y��1��܈��;�/�i����LӸ��I*�/�k�入?��s�+�mT�e�B��Q��ե�� �����5�!��;�+�]r���AP�d-~G���od��Y�בy��#� �\b#��`���z��2����/xn���Ro�������>�o"2���|���s�.�Z?5���=7��3g�g���=�l�_,��Q^O��yf�=�<�ﲼ�R�[����rxC_S�֎��k��US��=���{�~� �M4c�4S{��݂np�]���EVoq%2d�M�C�~�K��א���r��t�F�hn b�-"z^�i[��zPF��;[48]�W4���u�x�.N��b#%|�4�x�XI�G���#:��pq�ZN��-�0�>�:����ϸ�<=��ɛ�����ѹd6%1E���$io��j�t�O��$����7�bY~6K����;���eE�Jta���zzY�\ ��H�Й7U�_��,��8����G�g���D�ݕMT���8��<%P/��s+��>�g.*E�����������p��6���ޞ]vlq�HMB��W� {����`�Z��;>�ٌ���x�7Vx�Ylw�vK��ו��)��߀_9%d�x��� �@b���lY��X%��UH-���ۜ&�w�,��o,�]�^Z���-Z�g��2���L���Վ���8L)��������}��T�0(DS�E� ;)���6�p"�.Zm~PmQ2��d_��� ~�S�o��v�I?b ��G �M(��B^�?�d#�...
c֒6�)� �hu�V =Z�"Ɔ6�3Z=@�� c���h�j��R���I�e��!%3�Vf�!)��D#;�V�lde���U؟!%b�)i��TL�HQB� �}>6&r"�a`� t�,an�E�M�4 �s2��8e �s�H0È��NυJ]��a� �E]E�B5�Խs���Ҩ�iԣ�\��4/9�rѼDr��EYî��e����Q�K�,�tI����b#�H.'�B}Y����iw�?Z���|}��e��tǦ�Y;�KR_N���A��wOO��ؠ�訸Wg�q��I%yq+4�Y�9}��x:�^&�a� HQH�V~�g�J��AK�i�� �n�zDI���w}Rt�)�c#J�>%A�����( 蒒`���� *���%E �1%�KJ��>SGie=�L�x�ګ7� "�Z����5���F�!�Կ)���m�Tge�6fH�-��Ma��F��@Ȏ�o#8KB�H�O�����8wU�s�m�!Z���4�8�w0�8Y���"�%���]0v kv���(kq �I��"i���U,Y�V�nئ���#���ނ�L������f���ɰ� Z߮<`��^��j��פ������_�&��4�a<�VK�5�>:O�B�G,�XC��\�E k��f��P�Т��Ҳ0�� q��2��mE1Y�r�n4s�1$˘U-�V���1b�G+[�$�KF�7��.��L�Z������E`��Ȟ��F��.9��H���j����od1�#�ȹ�xD�QbP��@���Jnۨb�<^Z��%X=�&�55S:�,\��S6�Ռ�b�-�!�Җ�,!B�f��.'@n\�fx�@��[j�������(R�s�ڵPā� ��"��[_4��V�$�9;��@���]x�.ZR����k��E�U�EF�9�-�]G,�݅O7�"�pֵYc!"Y�njl+@�*-�]�W����]_`���cl��$�A �:���� i�k$f�{!�(�Eq�-$��L���e+���H �&J�l�`�#%�b��?CJ��7�T�q� ���.�b�q�i�ጃݛS`w����v���lYY��n��e��1�+m������l�o�Jҹo`�nea�eN.1� ؛�I��ї����a�+�{��;���ϔ��XO5YE],�9_�FE;�B ג ���MIs 3�)9��"�M��*��J��].��~��U��d^���!4h]��K%UD>T�E�n*�TV�4a�i�"�*��K8�A�ZU /�r%�cH9�#�D�\�9��ϒ��+�3v͋h�����n��Q:��(�(W�o���d z�M��Kd��þ�ۅ{[^zc�Mo��%��A��K����F2(���q0��N�����:(�JGmVG�^\�t!�hK�mLy�A�o���Q�_\B$=} �J�}x �SpZ���... ~(��X1yG7O:]����������A�'ۺ`�O��9�6"G��}?��3������lv�?_嘆�9���>T����2��}S�Cw�#�X��{rƬl��I��q����v���=Ӣ���Y�B��Z��H,G S�ޏ�O�;�;ۚ�RT8,�����#���j���l��y���-OA����ܢ�K�6L�|����93���G1M7L���" ����u��2��b�|�I�oB.�óYTb� T�W�#�!�u�l;����M�Ziqp? MW_��&�����ш4����7�^\}�H�߅soD��k��`���~4��a���G2�����'�"q�ϥF� v�u�Z��>�v-2F�yt1-;�a�帡�����%֕��c���"�`��jy';���:��� ���!80<�0q���(M�P�@�?��, i�-�0ב���oP�˄W�>T7�(ST '�)�V���E���Km�� ߘC���4*�%����vg-Pv�ej_&N�Ũ���۶\��((I0w�L,��g / M��S,}��X�2��Tn]k�[�f����-�3ef���h�v���^bL0��.S�0G��z`Yw4_�C�?��VTx�8 &���RA�N�u��H�hT-P5bh4� ��ҫ����l'=~�W��\|�~D��FhM����0S1[Ŷ�y�P�ܫ���|�ءhlY�j���}���Y,�ؙ�y���W_k�(Ms�5����F+z�]�������m M�Lf�ߏ�s2�HQ�z� �H=�Lɺ�e�S��;.c�a���l��T��ﱮ�pE_����ǂ�/ј��(U�~t���4��By��1\3�%��~ψ��]Ą�{�($V I'D�$��I[1y��nn���K����W��ڞ�M���r:^r�X�9���#) }�{���"�O,��^ߙlikC`c�Ga���2��)��a�_Q^u���fL.r0���"`�y"n�3!���'M |�AM�TO:AV�� 3�Λ�p��㵽<`�;�t�0s�k�1�r��&� ~��@#���'oÄd�����v�-,�5�َ�0رȄ�6�.��.���z;g�!4�ެ�O7���'�'���WWI!rx� AK���@���`���a-QC 2 �'������`"�j)��M�èmѼ���-��ﱌ�Y�SY_�����=�E8ID��#Ѳ2 n��(yԲ̔!�h:O��q$)�5H�����>�2EMԙβ�������/�J�Ia@a~��ӓ���E���J� )�P�k�7��.�EWM�hXTq�7�lbW�ٰ��kVa���e�g����>?\jS�R̃"�P"ΰ����3���w�&&�>�`gϡc�u���Y��2ա�> -+���+�fYl� Tp�T��s%�j�h�D'p0�E*=q�8ͨe^@oG 7B����'iSZ�\���7< �kW��]3JW�T����_���q������$a|*�{����m�*��ES��a��������a��+g-���������In�v���w��ϰ�}���2o�b�2�t���2��K�^�/nlm�tv%�n�>B�T�3�G¶�a4�">����r� -j�e�ގeΧ4�%����9�Nv�9kc3iYڄ |�g��É,�.l;Q���"�~�iY��� .�7�;�l��^lh��%z� ���s=����aE��:rª�5�1��s�۽��u�LOf�%��=�wѓ K��PObW8y��5��R��%���5zF�Լ��+!B�3F��T7ؑ�C�@l��̡��O��`7��#�|��a�j0�`z \�b�(Ӳ�;�b\��r��mg���|���s���2Da)J����'�z��f�m-�U6�p�2����GO�c�ӹ�.��əU�Ml�&݂�#�� ��t�u�����G6��[@]]�$\vj��%T/��:bH*�� x�WT4c���!#}�/*... Q0��e�4@%`�D�� �cć@��L�F�������W� 3 �P�Vfh���j��a+3�.r�KF�����iua�<�i�/G�l��QG��Wn��� �!HA`�R!_VH�r!����m�[�<���(�BҜ��Kk��VWąӫK�e���4�}p�0�vA9k}g/������&~���Cp����8�X���Q�f �}K=P�"u�jT���jd :�Hl>��4@2M�?��ٷ2��ŊƔ�2@ Gf��#�Ѕw�$=�p`P��a��H�7�N�AE]=9;� 0��5\�䃐�֕�:��T�wٿ�(P� $���S?6��&DB{�����T�>J�>�ŦY���:���k�(����@1��������3�¥ �B9i0=�V������@'��ߋ^�ٞk��E����� M���e9��O����r�~�����v��j�$����2p�X"[���,������깱<���b�KS� ��n�y ��D$#�Ȇ'�Ģ�lW��{'�0~��?�vә"� 6��<�}o�B��3�G�{���?��e�����z9ٗ�6t��ż:�B�["]K�^�<��ԋ� �� ��rBX�?m�g������t���7���?��`c���KE lG�6���(�A/[u��\r�OfK�ݮ䦅=\ ��BJm�Uz��(u�ʄ�bK��VZ fQ���9=L��؉�C`=-M���(��O����n0$M'���y�m ��xJ&����4��{��iVg�(;|��������������ڹ�3Q�7�=(��$N�Y߄��ޘ�O� ��"� �[�H%��y�$���l���tE�j�\̋����_�1!��Qh�SX ��3�B��/'ӿ�9��Iا�\H���ib��N|Yqh��M����%H6�+�ꭩ�Ϊ��ܗ�c�P��k�y�.�/�g��9|��#��C�2��!��X# ���m>t���\���"S 6��`��w��}I�.������2K�S�څ]��@n��~B�^�(1[�3�`�� ��;�P��Z7�CH;�G����}�ß��$�;���D%�plQ�:1���b� p=5p�\��L�� �|��N�����G0C�ۛW��/�T�:� o~�:'�pQ|�����Rv���1+ �ٶ ��M� ^��x���њW��ί�"��7ڠ� ���>osx��k�JE... ���(���H� ���ȴ�?P!�/I E�S�F֑�)y�2�R���I�ͬQH���8� a;�)�(S���Cc���],�q�T�0G_��HM�/��_�F���y���Q���MoJoM�Gr�I!0�\�2�wM#=d-� 3XO~E^�]l ;��s��֑��+4��Dwz���C��ߑ����CJ�����MzDC���J�K� ��2��Gk���6S�)<.�3�?�c� ƞJ.!��+ɭd3�N�!P��T6Mx���2���jށ9=B^&G�����T�����%�0p^$.��x��}�bM";�!��#���T�26�MJ����;�C�1���i؟A�F|A�,�vژ�7���'�$ Y�{p6��5�)ޯ���f�'�`%��Tuz\z]���;$F �w ��v2����/������{_#����?�J5R;�"Lc�]�Y@�����M��^��,:�v�����+�*z%� ���M�ӷ�_�LdZ��:%�|�3v�����q��C�Y%\)�!��>%�D�'�=����dZ���Ӟ��� �;�\�,Ֆ�(�)�l���iS�@�C�%�cY�9��=����xs���|�=�k!P�a�!u�Z1�I�� �L�ZL�b������>M�g����'�>��Q̾ WX0�]�w��mg��]\߰ qH�UB5�������/���E&��J�|q���F�,�ܭ٪9�yI�V���f� �Pc�U���$,#۠§�O�������e�,��SX+KB6�(_N���ڈ6D���A�V*�゙��6�]�z�o���H�Dx�mcs����b}�ų0X跤���&�ݛdv�T�!��G��Ӛ�̒� ~�a@�P&��Τ'���j%�-$��DO = �. /���p�����e��,�q?Y���_c_���)�>��\MWaEF���Ne+Y�<��/�usOao�D,l>9º��oP;+�WN��Mt#)�� y��F��B�w��BFO��;��d'=%�,� ��V2��S�h�4`fD�j��A�>��m�z[F��{��ӇX �L �Y�;���"Tc�����jG鉦Qk���&@�"XH�G5?�y�M�d�+I����'W`uƃ�m.�'�Q7���+��D1��N����i5��c��Ci^:LW�M�\@���"n���O�j^On'��߃�<�U�u<�9�g xD,�x�&2T�,�M!�AO{@%/$?!�@yI#;��&b=.�}���_ u%�����p7� �#{����<��-!����N'G��u�|���R�\�] ᾛ�o�iE��_,�?K��~x�0�� �~�v,�L�J �d����e���4�19zTC}mMuUeEyYiI���� ���F¡` �����$k��l2�:�F%%����po��W��Ə/���\T�V��FU��>�a~�\4�詠�g�T2=���T 7��Ғp{,��Z[,�Og�ۉ��m��p� 5?I�oV��#�n�.n �Ҟp{o�%�7�����Н&ck�u�����4��5!�뉭�I=MT�0O�蝌�-x�^_���W��V #��]�;����6$�UZ�K[����.&�.�U}L���W�>&��oC6�w��xS�D��$� b �����b��^[�m��\q��C�C��0��/ll�.
��7n�n;�sؽ��� c�^��ѳ��� ;5�kJ�캮�^z �9_}���e$�����^Clll�ƥ=���^r��>�Oٛ>F|��S;c��f�kn[�N'�x��d%,�l)-�)�2 �3ǚ͘-�3 ��65�v繉� �,�s��ի��1��ީ�G ��� ��uQ�ջ;����ڳQ���W�/���!��؉�G����h�oo�p2j�t�`�7��-.� �kŞb�Mj����~�$�R #�BD�`m�v�.��G"|�7�+d ����̔�d���(��Xo98���[�� ��$�A��W��JnG��ѽ���f�'��x���p�ƞ,�N�:��i� �uC[6��h�� u<���� ��=s� ��^1�Z����J���;z�����dq��uS�+~���p[�5zG'��L�79��v��� LCx��~�2���F�v�YI�<�ޅp' Jb��-86^|*S�V���$ �j��`15��8,g$�a%�����( r��e����X`�Cp���B�F`ۖ�T�!�m�(���E��|G��?�4G�ՃG���*���Q�Q�r�I���U��a��!����L���2b�;�V���f�_��9�5��<3=)�A�!�e�X`o�'� {��48���w�����y7ءF���d��3�xݓ����Wz�H'' 4�#}�8I�1�q���ʊj[Ė�E��tX8xZѐS$,$�u�NCR�o�!^*_ǟ�=i�d�tB:��57��FQUV�nZc���UW���D8��kcт8����G �9vY�� .��N���V�)���L^����T����_6m�)J'�`�+M�f벳-20�Of�O�36ص���b�F#&��Z�}����-��qLX���:�av�ښ�:{m +@����n������S���Q��پL�?����k����l� ��c�I��,�R�4靿�f���[g ����,�g���%Iz:K�ӿ_a�f9��r�7Aʩ����b�|��I]��H��B����km>��ꈍO���E��kc�6���M����t ��5<�B��j݃��C�� x�J�#쏴 �W�xO�D�����O��ٳ�OV���iz1��4@� ����]9�Q7���RB������@��\��@WJ�1��`��>�Lb�4L�o�`|\���O��"����oٺ�.�=�g�j� �+� 7�... �?:�QS�s�e :�fg��i��� ڛ���S��L�3׆�/!���<9�18�� N��vSs����N9��\� cuzB��P33J�&�2�S�8�iwQ��ҁ�x$�VRI�����u5�)�Ǣ��r��qWW�k�O�Yx�k��VrVl��S[���Q�n�֚���6��7R���U����c��~�J<��q��K_�c�c�^�����G#9� �D��yg�]��O�XmZ�7����h��c�3ݪ$��*�Πg�F�;�h��>�^��~�>�=ml�SDcЛe��Ϯ���q���f���D�g�J�� �N��� ;'��*�ݧ�K��v�X�1e;�|���ƮK��zUJ{�� �����,!ڠ/K��T:�ԫf8ms� �Q��g��&�=��`��6����߃+ȎԔ�2fP��t��v v��O���|��]yV�� ����V{���.���,C��^�~r8�-'��멒vaDI�<���p'_�ay�'�*x��w��S�.}T<[|v���e�NZN�a!4n�{�g�s�{I�J�j�J�n��>��b�{B�,Ϭڥ�ŵ��n)7VWZ��( �����* Z-D��b���z�&1���D�0���=�x�7��V�*�+�+�JyԆ˱:�=��I�X�ԊS,l�de��g�` ]db�����y�2�����}��}��I ���i�ם%2]�{�^EUF��r ̠�N�/T�ꪺ!)�eBmm�{,�9�Z6�L_s���J|lA.�v/�>�治罶d��/��꺏7�!��|���y�S[���s�tt��t� ��6O������fl������I�-8��(��Ro��%�����n\dVˢȲ�K#W�lT6�lQ���h���J��J�۫gԈ�h�����vz��甃-z�_�$���Κ���}�W��Uc ����*&sB%����Ks�ù��p@.��U�p��RVQJKK7W��VT�+��ezk��Z�)��J�\.�-�-���5�W@�ID㠑��h��F���F+!j#Qg$%�ʨ���X���H��Fá�,��^�Pojn�른t�gW�D���~��Tx��J26^��.��P<ʔʞʕ��T*�T �*��d�-��q�&ʹN��Em�j_��ɭ�ѩC|hQ��h���^���Oi�>p7�����ڇ R�*{��1 ���{�D 66%��\��S��Y9�ڠ��!������t��A8�Q�n4 �ZjD_�<4�.Gjlܩe�S� ��1xJ�DpH߇S��$KE�*�kcY�QmSeȋ11f�يl��<�3Xb�:}k�� ��q@_�J%�=�f+k����h�j� �y=Kxͯ�{�Cj� ]>�@��id�Qj~��kZ����Ŝ�AG�H�.%WGt� r�wB�'p��F�_�%�����T�S��]��t�.w��W���8#q)�#.��E�x�8�&�I��+t�K�+t�NW�t:�L�Fd�xV P� do ����A�z����=^���eq<*�#θY������M�P=?��Wx�x{�_yE�&��a�r����By�Þ}�Z�fo�*i_�> ����Q��np��ݪr���9�N��oД%6���0"$����G4���!@Ū�H�o9WT(��L����Բ�֦�Z��-d����uy�ۣъT����x�� y�U��7�ۨ����r�... ,ú3&5 �{��t(q�)�kB�LL����*��(���$c�q�Q0�����f�n�!�a�!�i$�+0�E%|v۫|F�c�^���|�O�� ����v�:�&%|�$��`̣ͪD�y������l��4u��W�����t�����{7g$� �&��A���͢&��ve�Ʋ�e��l/{���+���~����/���G#�B{��)����"*T� %u���2��PH���d���de�PR�4� ��I���7XH8Q,�fk��G�#�#s"�GvDD�F�_��֊�����ޯ=�=��r}��Do��4��oʉ�Ɵh>kA���n�Or��j����*��Y�?@t�_Ԥ�"�r��.��L�ǻ �gEw'0h? ��#}������ݑڌ���+Om d�!{\F@�=�˗ޝп��Χ��ţ��}������ $�1g�}S��[ɑ�����zj�9�^�|����ݲ�'�� ��2z�6��W���GT���6ir�Ϙ�cwR�����%�4o'gO(&�\e QK���r�K�ݮhnP'PS8n�qi��x��@�� ���uS b��3��86���.�b5�,��y�)8� n�|�� ��jCR�{A�����\B.�x3���P�.5� SE�� �>���kz:�d�!�+�#����O�6�XI�4cL�t���t:Mӭ�6-�j��ֲ+�W/��z&�'�MA��LRa�ӝAU�⛷��ڰo�T(W�� ɘ��fv�h�=��Sm�{C%fIR��{�����o������R_��j h���K���ߏ�ގݙ�,&_�M�fW�[��]��[p,t,�Y���Yr���"{�o��U��{��!�C���mV��Wu]9���\���`��L�Dm�=��)'�����CC,�+qF�R ���+F��ɉC��ئ*�ݫ&q�� �j'���ʫ�=�������Y�VC�,d5�����CZl,Jjk�� �srH=h��w���ۏ�{�<�d�,|�WR���gK.ǒ߅|������#�8=��؋���+�ZF�c�˱�2T�7�%F��bc�y� z��������=�}��x? }�ȹŹ5�!8�vh�fh�Y�j�M�-�[�Oi�k��r ��/��ꟷ��ap [ �щ��<�F�J�r?�P�D�I���+����.",{ŏ��.�&���"N �� [�]�f��N-�v�� 2Uz��T#q�d�S~P�Uͬѩk�KO?��� ^oq�H^��k��:J�/�N�3��㈏�������&U͠���t��5��x�f�?x�q&(I yE�W�S4�5ך���f�3�N�>q$a���K�5Ԕ�JZ���' ���Q�SE�Q��FI~wQ$�c��\V����h?�I1��u&�; ɵ�ޥX�]�k�� ��k��6�9F��R4L�����k��U�>��3i�pv#qNq - ���(D�zs�5����3����I�6���k�(���Z�� �p_y��O>v˥�]^����?����+���A����ؿn�}n��n��e�벲|]��k�@/VJ��N��H]t�v�v3��m��^����F�[�G���Ϻ�>�Oo���"Y�!'s��:�o�VT����%%��"���9����6X,FCT��lS��,�n��]b�啵�U��.ʍ�E���"�$����z���=��F�H��@�� V�O?�5j�� ~9О�j�ʘN�F�ߔ~�?�$0�i�6��v��j@����|Y�6X��5:m�_#��O���b�1��>$�j�'���!g��îƉ�M=�IS�F0 ޭ�Q}�-���1kލ�/��J}�����R�l���<��B x����o�<��!xf]Q�t��� Qe�S��Δr�:�8*WɊ|�<_^#�\�9,R���h͆N�&jv��w�����Y?���\�� {�~:�3�^9��f2�9p��b�����߂'�� br7u�jg�HdP�e��ZG'����w�� �}!���wS��z����ߜ����8����a#q�Qԏ�iVSe2�<9~�`�jh��8������vT^s���暥Υ1Ӆs�9X�9����wk>����T������5K��nwn�i�jc1�����)7h4zC��rQu7�9 ��C�R3O �64; Ec��)�V�����&ZZSk3��srLƨ���e���2�w [�3�w:J�~\Q�����x~�$?/?//\[�-6�0G�Ĝ����<�&F���\Wү�'K����%%̔�ۈ>I���g� 7��ϛV��n#�����Y_��55=5B ��@�Ԕ��+ � L2� �l3���n?�%Y�**���!�Mda*�v��fuPn�Q��*�� �����n��y�яB5��PMa'�i��B�m�r��j����X��O���Ô�3�Bf�Q�FC�����e�.���:ևT= Su�A6��Ġ�:���`�&�-g�]�J8#�9�b�j����ە/ׄ�fn|�gmt�����!��... �G�ť����7A�?�\m���� �?�[M�L�m.� �춎���^�7:��N�����Y{\!�6����G�>��%�3�e�̩�Y (����RȈ���d���iYDS1*b��A�RLx�F� �G|1��ھ� �3���jI��� *;\�q%�CB�yM"?���˹gy��>K��^w@5�d��Mh��v:�d4.�Q%ߦOb9���ko���D��}�H��Sg����8jj�g��.YV ���K�%�gTO��S�[���Z�3�Oh�/}� ���؆h�pƎe��1��`d�o, #~��vƟ�`?;-��ծ�.��n���r�VR�^�^�����.,e2=}R�J���B�!�i�q�qݭ�VwY�o���VOk`z�Z�ς��AC ����-c�Xy��h٥���%�Z���#�G�}�}��� �������v,A[���4�l;��{l"��@���~�����w�Tl1O��iik�^�îȑ<�W��Ɋ�{<���;��(��`��-+>�0�=��͞���� �z��O�L�� Ce'����_�O�1��+�o�V�^��L> ���*���׳�!`,0��w͔��ͮ9dP%J�*|-�em�E"bP � Q���t����ܤ�L�)L/i ��R58��R��N>���(+?!F��J�u�J�if� ��i3�z�+��;�;�?0���32w�� ��nqg�A�H�\#��� �}��������������s����ٝkp�\{n(wP�ks��~�k����q���n���1�,A����sD��S]��m<� ������μ3KR�y��/��]�9�gi<�J6f��|�U�s��f?�ٔ�v ��v� �����}�� ��s���p�7�Z�fc7���-T�l�0��z�)�l���,��ɛ�3[� �;� ��y��mqg�%a���=�c����;�{�/��q���|��y�yW�c�_ra.Ne&R�픣���B�����S��G')�*� }m��S�=�8�Ub%�]���O�%��\�d�����-c��7���o|�wn���U����������7����6�g��+ǵ�mx����ް����/��J��gXO ����k~�C���7��S�כ�l�OY�,z���2�r�e���u�J 3�E2�, 1�-�n��D� ��3���D#Q4K��( /�"l܌�?HD����f#��0�iG(�eEP�:��1��W�1��>��~�m��6}a�a��k��$t��4t�p+B��l� �[j��<�����D2L...
�ˏ=�&��"�)��m�B����Y��5���Cm�=����M~C}_x�����E�"K��س\Z��#�,����z�Y�P )E�cң�[�oLR�a>�N�q8�.�>�1�3���м�R�`լθ�i��N�Q����!㊴��W[��= -g�v����"��8�;O�g�J�5�1�V��T���.�1i�I : ��g9 lv��p�BN��Ҳքi(\fa�3DB�r;�w�M]�A���Z�x{��1}�q��r1m� C,x� ��ئÐ���H�0y��j�����z���f���=Z��m�cf���0e��pN�����8pW眦�����*�s�ov�>8ߩ��}��4Fj"[�� �� dgP���^0�� b6q�Z`"��4 l����)��[4,yQ Q���%0"�#�'�v���3���I���>%a�ʭ�`@%:ؗŷ�VT${-F_������Xw� v�/$TJ�ϥ^�.��;p��`���@����"�+{�":��\�8�4�YZ#����.uH�%q��u���%�:'B/�l>��(��&qЎ~f\ү�֡W�m���s�K����7���_^�T�h�L�N�Q� B�T� 3J�A5pnD�)�KQdAC��%IF�*�QPh��"�":FL&�b��ܤ4��9����L?%�� :Q_��SܗY2�Tu��w֔A�zk��O��z�q��`�5�Z��ڌ\=��L��Н�m�PG��٢��r��E�&wB%����s���YITq���zr�W�G�@�ܸL�GxLxL}ܸ[8,�%_Ax�Q��8B`K�!����ǐ{�����i�Ct�s-�f��-\̮:1dr֡'G�l� �z35������zIkV]�8�l�m|�����x������c�1uG�F0~�r���7��`�oS��ŭ��'!3m��֦=*=j�f�f T�l��зR]�TV8V��76������Z�^�]�'`V��p;���P�J-��T<�{���ƐQ0r�*��r�s;r��v�ʡ�ӹ,�^�I(�h���\�z��8��C[F���b(�j�4�+�� �.'�_F3kY�k7t��|wjU�H�'����}��С�����:�����R���L-�(\��T:�>�.�\8��tX��R���'���҇s: ,V+ɶs�`# �d�'�[�?>)�n��gs.����`�%fb���\�E�P��A�=B�H��W�����z��7��fLU�t��d��w��WS�ͮo^`�ilxډ����N���6�v�r��:3��:#��T�l��^��8��hm�)��pY]6�}�u�m�m���{F�Ju������z�=���q�f�u�u�u��a�3V���]��fv[���,����:]��"�0'�&+�i��b���~va���{�Р�uDh(Ra���R�� �d���0��S�@��4լ�,�f��� `�n!q���� ӛ.c�����F��E�`ͫ���~]W��.�z���?~p]��1��OJ�'���g��3�=�?Ӻ=�����㮂)8.�W������vy��;�`��E(n(n_l�4�h��Ҳ��#�s�q�uZ^kd�y����¢k�Ƚ'wk��p�2 �P���'�M����JD\��8rG�������3�X���#5�x���di���2/r��ּ ��y;��,��eA[�<9�7�-�<%/b��f������"]��[�0�k�W3j��4��%�1�^66�s��n�-���^�����j찱KKT��i/�jY�I)�. v�������/}���y�}DҪ��Ll Wq�δ�Nd��� k,p�4���=�s��G��_�Y5y t��Q�欱��5F=����5��,5FO�&��� f�{�q��*� tk���i�e�Qת3J�E��˯0Z �#fT.Ev��Q�,�������u����x��i_���_"|�URDzn����e���;��M��S_�>���<���I���ˆM�兎���[��9Uy5��7ٴ�O�S�ш#A&�` +d�)S��r�Y�Pר[TE�+�Qϡ����ܯ@K5��@�F� ��ڌ8�����o�{>#_a��c�h+\��eԼ�������"���\���Ƌ��&���;����C�1��+?٨ Q ���!D�цѪr�:ݾ���c�� �.�!�ܟ�ge��l���d�fS��Z����Fq���Ss�Z]�5kr9 &U�߇@��)0�)�d��uFz�>ʣp!���-㲰�:��ǂRW��I��CR�~�~s�dj�r�'����smm��6��:i��d��q���S,� �z�J�8]Bi�� \����<�Z=ŝ^����H�'�C���'Ҏ?B�M��J�{����J��#�z���-���S�:���2:�m�����;�}#�f�Y�-n������V� v�)�_��/�?�����A���|-vY<_�+�ş_�>��7���r�-~y.��D�?r��܁��h�˵o�n�Z��.�e�q��a��< *f�q _x�C<�!j D Ms� ���"Kkм�̂X�fj֬��&�i���������L/��K'zgzy��ra}������Smܘ����Npo�)pW��)��2K6Y�K��� ��ӽ��s�S��泶X+W �P���V�^����m=n���3ʈ��:|��0��c�ݽt^:��;/u7 ��/MvE�_��ă���yQ�Tz��/�[�Ui7�?_��í������j���1�~�}M9��I����uV� k�M��V���ׁ���{��8��A�������9]�n���k��N���a�aYU٣�&KS֨쇕�T�ي�M������\d�L6b� ��t��� Q8��53� kО?�.C�ŵ�O���u�L0�=n��p1��5͗��{���Hm���= �� ���Bw6ڋ6�:�3�j*��s�>�{K�]k��w����N��/��W�ng%�N�ر��SO�7 c��J���&��Z�p/�:zn����=j~�����}_�_����}N��5�=�9���k5/4+C�՞j��BZa['�c��ι���<�Q��c}�q8]qk��������[���4s:LDCU����>=��Yģ�W��. �2 �X�������hɐR���e;s*Ɲvm'���g�qf��'��U��%�t�V��f�3q����o�瑩ؙ��H��zN����b��v�~բ�{�FqVM����:��:�7[�Rg��jluf�eX㜪v X3� �����`�n�?���O���s�f5)V���-�Z��k6 l�6�s[j���G��l�c��.� �7r1��By�q�3�-rNU�V������8+�C���R?�^M�I�}β�[g�_{��uۯj�QK����0����}�M����S;0�z����"9��b�:i4���b�jN�e|Q}��0\t -7'x�rP>x����C�1�9�;�%ǖ�� !ܚ���_v��ܜ+l�t7���ݧ��u6[ۭ��srk�?;N+���77�q��g`�4}9:�l�� )����t:A�.���qr��e� � �9`р���A��� x�4���| Ɛ��iE�:�6�� D���j�۶���ƒA '*��8L^�z���8k���p�u�]�q�^���G�[Op �l�˪�JVި�7��7�sj��"���������#!(ޜlj�u�,�Vd/����7���R�{��S�ӄ;g��Q(��~um-�������b�7RGn�4��p��#�r��S 쯰�=�[�Ǜ��!{��*��I�es{���8�Y6b�fQ|�ӥl&:Ӕ61��L6M{+CqΤ��)�,�Q��3L44C���1���T�,֬(s�$��^�p�P�q���-��gc�<�� ����a�� $��k*±��CY��%Y�U�����Q��#��^���K�#�_^����h�=k����^3����OM�u ��N�f��]�˜fKǠ{,k�! B"��R��H6R����j-�^<=�Zv���\�s���3��r ��������}^��سMf���l)�z��R��/���� ��ա3I�ɜ�E%�߳�|P<�Tw����D�{Y2h+��j,�7��_.)6E>.tT�?�<���ƗC*��N�E�Ã�\��O��t�oV}g�C� �?�� [�`LVƉ�]�\� �� [�b]n��\[ |�~+亇$���q�iAG8��������Y�c�C��e��,֠6N�\Nw��m��9MƨA�B��*M�T�aKz���[|�>��;�c_�pF��pѧ�P��MO����ˈ}�a�� � ������/�)�ԫ�W�^A��\A��`ei��2��=���>17u24��ƛ*SІ�>�1�c��ؠ]3�6��� ���������guc��6�l��P{գ�תT���j'nH�����]L�#i�N$K����=��N ��E��\��2���<���{�~�$��;��P&�)�b�����c�6`�f��&�wn/�eqp_|�v��4�v! ���^���7��?6���(>�Q��p�,T?O���oei�2�0_�]�W|B�.=.?���J�5R�c8*}� N��:qC�9��J�"�g ��Ǭ�Bt���Q,j��� R���!��nC[�n�c� qC��4�Q�Q���9$�OQۋ��(���K�i> 0'��/����f��Z`�<�����4|���[|�}���_��>=k����(�&o3�M��G1^;�ǵˆd��bθPc�Ɋg7c-c�����r���rV�G6�/_j�zL&|��=�(�ZmQ�]7TL�lю?O�����i�����ܦ��NA3���o�rS�sqw�D�������=-�'b�=�ϟ}�=s�]��m����T_�l��i}_=]{����4�U���gc���}R�vֲ�%���, �q9�� �5���V��x�ezV�!sww�S�Z�s�ĚͧV4��F�b��>d�ŰL��nԫ���fԤ���^������-��� ���8?k�w�~.��vZa4c�r-���2f�0��3,�H��램���wϝ�a��Y�n`��S��v�=f�UO~�(�f�Ӊ�O��5�u����?�=*Q�J�H��P�l�.�v8q��f��fs����q���Њ+�=cQ�j9��X���d3���{�G���N�ܹY��[��������Qá�_\�g���3�8��c ��Ùa1����������C��X�^Ȩ䲃v�5=�����+G_>lr�}����o/�ߝ�o��+ڎ1��W�^�!G �^�7���h�#%��jt1狖���"�,g��b�4�<�#�G���z�J}D�o�^�77�ι�uO�]�jut��hg�hk �@�.�0Zm� �UU�"%��Y �yyy%?O�Լ�u�����%��kKw?R�?oIJ�n���{��%���7���G���Ex�0z* ����@��� ܝ�y��4��i�@:p@��UIúN��I���ٙ ���n�X�ǎ����E~�� ��"�\��)���F���Si�w.]�=��}y�籢,��f"��Xdj�@c�� �\����g�����`s��3�G�����`~\/#v��Z62�[��Ƽm���~��~��3[D1����R��.oi�n�异8�Z.v��Ok�b;]COSx��z\T�kfyP�Rm<�d�O�_�!x4��S���^��ګUUǽ�7�� �q�{mޠ���Ts[�6��?x=4���� X�b~L7y�U�8i��=�!��i˜��O���8b+�%ܝ�ꠥ��2��l�̣�_�3��>ziŎ�9��϶�# ��uʵ�i���g4!,��4�i�.����W������/J}�ٲ�<���������>Z�<�(�,�v9��Ol�K�o4|D��Ι?���M`ӟ��'�+����Ə�mC�㬭6��&>��&^g�N�>AU��&#�l���Mx�v�^x�a�'�>���"n~:�-�I-3�RFgBJp3��'D��i�:��^���Z���:�:품ˎo��D8�Vv^�I7%�!'�AN�W���J���H���n��i�=~�P���6~�A��N�j/'�UTV8ح���q�ٷ]qk�I����SS��d\R9iԠG�;���Ej�s��������Jǵ�����~���:�X��$St��!�<��v�}F��Fطx]O�8:�=IEt�_A2�ӈ$�TA�T;�l2 ��~Ԗq�E1H�?�_� C�,�~���\7fI ��6���[Yg�w|ް��O�^U� �� ��D�5�T(�+�"�_`b��⇏�TL��l��ʜB@ �H�� �Okx�D2��߄/˛�d�iQ3"i��Z���L�7�-P��c�uu�T9� z�9M�("0�" +#��p߱��)��,A�$�hA��n�3N�8�k&�!^�#U�x��CE]����}�S�o�5x '�����6��m~=��u ���8ڎ.�K;� �W�... �!�h��ql�y)R5�d�H?
��;?�+��Eλ�]t�y5�~�^�/�<���ja-�]*mSG����EX���ɹ�Fg3�����ӏ6b�kbw� $�ؘ-74��m��7$�D�z�}$"�h%I�B�=�Bq܍���| ��Q�5���6GC�$����];�?��G� 73T�k�iC�=�y~g����7K��8�7�LQ쎉���=����+q����-��]��g.\�G�#::11z)�7 |uT_�g�V���VeZu���vA��jGt�CX�4ף���K � # � e�C�!j�5� n�˨�F��l4U�ldFbt7�ӓ|eq�X )Q�ДȢ���P�f�F��\FR9�P6tL?:4�2� �:�:=&�Lͣ&��x?�r %C��K�Lm6��N�HMF^9a�w��l��i�d�f��O� �\�'�"�:W��e�jj���_���4�?du�d݀��?��jҟ�Mm:fB�ܚT���� M�vLl҄]�������?xQ3a�ԇ�s�h~^�3��fh3/ڑ��cP��1Bb��#�vf��~�+�ڙL�P�+4�D;��v; ����bd�h����́B�)D�6�zr@�9��mR}�c�a4� C$a�$L�����Ѥ4���sM�o�2�mx��؎���C� &��N�L���5S' �X8�.�n� ���Xl��~!��uWO���)�S5��RS�b;z��~uy��;>`�4p����z�Ƨ �i<���E��ܻ*F��w�����,��ջz�˃��z�w�����"�GN�a$�j�~�ld3�.�W�ϫ��#��w����n$[�%Y�����lH�;��ԗ_M�Kv�vd/�o��M�f/i8��#�E�.&��3d���-���I~�?�����>e�V��:���5q��g���\��s��涖���8ً7��s ��*~�d�6�� ��Ә�]4�4R=B��5R*2t,+;�0i����"��\H�ta���8�$sD0��i��l-;���h�oY�>�J�Y"�n@ *ϐ�� ~BھB����m_��d߂�5g![�6:�l#�ȫ�$��Nv�&���ar3�Y�El"��IF����h�� ��cX#�� r �M���� YAVI��U�F�I_2��%w����I�|�A.'דy��mB��m��=I�"��?�� ���l�^�k��H'�q/y����^":�R�����A�V�m����� #i K����W�Oo���)O�����U�Ԓ�A��v��Y�2�mX�A��;�����f� ��Z��mO��$RB�`@���k֗�e���... �nI�%aV�l�� ���y�n&��&�Ynf�(f=7Zan焨����C�{�B��i�f������n��,ŘU���0�Ř��c�T���P`/ٛ�z1�߁� Fx���*�K�K���OW9+�$WV�A2��-�x6���J�wuKy��ߩR�ss��#j ���V�Ri�Yi����0�N��A�}7Z�,�ĝ���M���G~���M�nt�S�γ�=�~ D}o�l _���c�g(����'�����vq�iq�r$l�Sb�c���*��>����Z��28atp �����ܵ��r��y�z��Q�h���;%S��e7����r�WN���m�q�6����;�۷@��;t�v�e�L������x������ m�&k � ?%~���� ��7�\{i7�� ���`�? P.$���R�%JЈh�����k0���� �H��~O:��EdZɁ�+A ��@b�+����i��+�?{7���������uꏭ�^[�n��6������^2)}��o����چr�\ґ��r���F�:�h�8�ۨ͆%1��G�6s��B S��ഈO� �O�<��zV�;��A�퐬=�����4;@tπ���D���li�a�q�kZl�qqx����^�!�)�(C길`x�T��`��b�X���ic�g��3�L���gȳ=uy�p�& ]H�փQ�|�K���3gsZ�{�}�}s}+|�B�:���/�5���dFH%��+��yI-��Jk���!�ɇs�j�V�E3���r�*�O�Zy��<'T�3���!���w5��ڦ���i��#w~����#�����o��9y�}V�a]�|���u�����-pw�L����W�~\�\M��o��rz p�P}1#��l�� �@��B|�,�*'�b>\�SP�SH�N��$i)�p p�]���d$4oηl�"�)H� �O֖�dkO� n$�x�q,���$� :q�������V�p�_�z�~�*�����^�˽z�J��k��s���o .����<�}6�7������X�%�G�ۼR��TV��F��ϋ�����d�$�|x����j�@(Y%������%Ϛ8�9ۅژSw2��,��fVK�8o��~;ڐZ���هu�(��Y��"� ���� �mޛ��Y>�;��g�γ����7����_����Ԣ� ��1:F����W�u��?~65��(�L��t�����v�x=P8� �����V���� Q &�V�RUeh��˄�0����| �Ҍy�"� "H���J5�}�(�o�3�7|���Э�z��*���M�I�Ml`������:R�����1��r�P1��QՉ��i( ;�?��Rx��K�Н��R�<魳i���[郍������n}... ��lbY2����T����j�;q��8���*��N`g�y:��n��g�C\�9:�zN߿�ų�nSick��K��z����xt��'6Si����/�����÷�s�`(�ht����( {`l�UjM�,ӥ��\�t��-�i$f�>��r����z�������G���"<�5'8%�T]�9�N�5|��a��Fz������c��a}� � ��Am�f-��;6Q�{s@�>毿 ��L�.*� ��Ң��:V��� Fq�X���ޗ/�Q��k��cE;���t2��@P��B����C�B�X��z�d�Т���A�U��U=��WP�G$�1�� y"���XCU�jw����I�@�{_/9���a�����Q֞���Y:��D�;%|*�8�I�g-�}� z��g< .�����6=�6QG�4�%�-L���۞���b[*��|>��ъ\�M�:�f�aIw��<�7���-G�}�2���[�صg/�d8Z��Ѐ��$��@&�-t�b�s�s�!%B��#�.7�|��e4Q�R�1��/"��<�쥻I9�/C �&"V.s#\Z�o��k�.y�@�M�.���nD4� ��3$q�������@' ��\�#��$��!r���� �7�o[r��Pϲ��\?vŠ+\���]���5��~�Qҷ��9W��Xw���}�e�[5�rK, wI����}�e�{�a�e���=���>�>E�m,�Rb�Cu� ˠ�����0�05oj���������>�C���U=�lGSq8� V-S_G�I 9 sH3[��)��<0?l5{=���B����j>�W���%�t�q%B�� �&$J��|����X�A�� [�x�l���rV��ӳo����h�>�!�QG�C�:�#�� �q��a�a>�#�!� ���Q$K�q����T�� �n��p��OC�:�a��3;(႘�)��@5<��z���M�\���n)�h���.I}t��?ߵ�Ƨ��忾}���7o�v�ҭ�� ˦M�ZG�>�����ן��ӡ��K�ܲ���^�kl�dţQ�t�.l-ki��*�n:���� �n���n�,N��*|F���`�q���b�����m&�b�^�0�Ö�b��9�`��w��O��0�&8��Yx��D�@R��?*jf.���4|ܨ �rZ�Ut�HyOz�<�o��敽� ݕ_�Ї���!�Ȝ�C��'�4#V"�����%#b�ރ� ��d�g0�xN���� @�Rd+Ȕ��֡�8� �:���PhW�!j3�.�A'�\I� �g�0)�9*"U�su�--K^ڴx�Ȼ� ���'n��[}Ә����M��p R��ԯ2u�#a�h�bJ�ZLGM'Mb����M������L�(v��A��J�@�W�... ���F.8�e8*�"*g�V�����_��5�]1���Z|�X0?��Cp���ijj��~����8�!�z��؋�K��E���F�����Q,�gT�,3Y�!�fa�ۊ���E5������a_L�ټ�B��j��-��DŽl�P,B��@z����@�F>lY.X9�my|@�Z�)� �ǍJ�I���,ƨ���&Ry�j�S ��ݨ9F��&��#���"����n��7⎦����ݛ���7D�������C�'�ٲ�4N���'̋�M�C\7Ɗ��W'�$��_�ia���Wʸ�`��T@L� H�k]���I7��K���U�rz��UT�V'�P��9�� �'� DкP'�]!N���Ӽ��\k��ø��Q���^3����*��2��}���X%�<벱 5Ѩ�v���ح ^0��w�n6��V�����}Ґ[��݆�(v�ew7�؊�� ���Ґ'�����A��y!����a���k�o�����L�n/��vW� w�n����4G��$LƷNǩJ��&=���$�� ��TzI�4�1}%��ې����NE0(`PKc���p��n��K�L�� '� ��8��Y9��#��T��2!0m ���w�g<�`�H6� m���.��\��9� c@ֈ��uF× �v��J��Q��.2\��wT �RgY����`��`��X籆� �Lq����D&p���@RՇYl��q���S�1�=�t��������$) �.R�G,��p!�X������ 7"�^��s,�6��8Z;ݜ5C1�`Ξ��#�S�1��XCq-����[V�����_�1DC�q!�8�Dž��p���� �U2$o�Mg��;�8g,�f<Q/�������(�_��z���@�B��x��d�rJw���!�@Aa3]��k��(���bB/2��U�a���3$hA� WΠ�j80n�3D]6O�B�U]_��a�G�Y��}���X�ӳ�������5�'����� �._�KN�;|��vo��Z��nr�{�l��5,]:��ߴ~�i��\__�t���Hj۪5k�K_圔N�XKO�U@�e�_;�?�o��1����� sQ�k3��V{�_�Y~!sY��e����eK�%�Sل�e����"�-��~�� ��B��6n �r��������S���G���+h�4��g(�< ^(peH���P�\����p���@���C��R�Ŀ;p�v�p�_��Ia^�i2���j X7B�ave��q%�sa�W6�Տ/�������K>#'��>pް�� ����{�ۭ��fdlE������O9�{ �Z�������\s�:X��8^�1^��4+�^�^�n���P�P�@�$e�i�V�����Q昦is\s���7P�IUlWJpܙ��^'MW�����}a���p���h`�d�1��1'k�:'7\>)�'*��J��SPX�{S �!�Nף���nJ@�^@�vp "�K`[1�A'�... �D�@��TA�( (E� Z��VWڧ��R�n�q>�]�c}��(����Ų��ݪ���H���=3����;gn�!�������~����z-�:e�����ׄ��j$xa:���J�{ ���z� ��3Y�;Z��1uˆ�T�ly� )�Tm��� �k��h���Vv(����£ɚ6nh�d-� P��~L��J�4���eaMFs?Z�s��U�r�� ����Q\Ob�oQ�$���2g����Λ�m��2 �_e#e�&x�1��t�N��-��ݰa��=~.;��[�IK��7<ʔ��<:��Y�I�����NP]ֶ_J�6v�<�� @}:��b 9��U�������� 3I��Li��I�WI�]J�#���;��d��إ���؟$bd�/F�bÉ�_`4r�P�J���$ݣښ$O'�����ɡd(��4}G��I�,��Nh@S ��;'�b4;�B�� ���D�`mv�_�0]|�� d��-��C �dȉZ�E��H�؈�̔d�n!XSsFŬfn �!!Ayr�{�>����{�UW=vi�O{���ָ�o���o�^5��y�R&�ɧpwt�q/����FX�<$s,u�p]�bd&-�R}�a&U�y�����5l3T:���n��!�W��om��)�ޝ 4Dr�8xw,X���Gl�Z�j�z^jԧK��\p�;���R��/S�iߕְ5|��]m��{�?(?�<�nԶH��'����%�);�7�яI���>��Ig�Z\�^*���T�7�mBh���7�ѕ��6��It���3�M�Z'�>�m�sb9K@Uq��æXw<�*�����Tw�ڤ#������H"�(�Sb�"��E�� ׁo_�A�H<��ejO�P�,hi� ���� *�@�@W������`�c K>���T�?D��S����'�o?*��� �m���|2�ٟ����p����KG���>�/4b�����Tx�La�#B 3+��$��o�7�o`j�����+3HQ)�� kX���aB�W����'� f��~�7��AG,bL��х�`Ha�XM�Z�W� �Ǡ�)QPIrJL��>�t������큱}:�5�!15?���<��"����H�S�Ք1;،R���U��K�Wȭ�@���4.�[�+����ޭ����[�[Y����z_D�iY��JY�*��������[�>�n�b>Ǟ���H{#�o ��;�T��G�L�k���Sq���-�^�ۦ���$WU�3Q��E�bfY��M�,��j��Ḣ�[�����"���q7������vn -k/��ց@Y�/����T���|����*�(��˾��@�zX����v4����#�z^@$c���+REp'��1�:a�#J)�RmZ����lj�do�;&*�/��y�%[��s��n��r�^���k Z~��{!RC� '̮qbP%�s{ؗ���A/�u���t�k%�h�u�~3�8������~�~�I�_z��1j��^+m��/!�������i�Nu%���a����� �.���h�� X:�SI�z8K"���b)�φ�:�KG��K��I�����F�����ح�CiR!�b�1����Z<1�w���G�wiU&؛�?�c?!��r��f<���P�... {Y�)6�3��%ՙ^ d��X����,\��YXf�(w^�����P����s�ʚ�t��DD�Hk'��~��U�ya$O��jt�Pqm�~Ee������2�� tit�@w�����(� @a=�ئ�t�2@-��p`��9W8��\|Bw� �0G��(P���o�[=��b����9�j!���r��(K��i�?M���$��o��X��t��g�Qvߠ�)G]6� J�:6�ܬt����d7k�id�{@��עY����1�ҴV{��O9>�G9������Q� :� ɞ��#�;(��!y�e #�n��>���A�t;�4��q�}��z���+��G͛��^蘍�|�Eo?��먵_税[M���uL� �8[ g'��A]�z� *���[b�n �显a*7���&�i����e�4[�if�9�l6͒��ɜUOx=ڛ%�hՈ �H�y+N�3�ę��7I'�x��z֤�vQ�"Y�d�+ʒ�.T �z�d6QSk�2��5�� O�bj�v`���AH~G�Qk �TM��@�l�#�26�U���7� �-gM��6�&cf��kPH�|�/ۗ����lo�PT�5FlR~4_n �c�dg��}�#��D ���&5�`�)ʮ��Hf�;s!ɚ��¸�θ]��n�F`��DE�]QR�n'1�n���706�2��6���Wm��69a:��� k6J�ލ��B ��|��&v�����&e �;/�ܩ�$���6B7�'.ؤ���W��ٞz�� U���=.������kzmJx�,t5��whQW�F;{���ǧt�|�@���?�m�����6k`������V�]���Ь�i��u�ű��|�X-ZgӴ�f���c� M=K�B�Bk�w�>�9�0S}���!���| 8��9־=y���u#���OP���T��ץu�u� {JS�A��P��U9 F��� q���<�V��&��/��U����c�&��&~����n�MJ��&�v�����i����,%�UG��+ �� ��h�ɪ5YRR�����Ĉ�>\4�b�B����B)lj�8 Z" m #�.i/��...
���x{P������4����n<�����&Ő_MD��@W0��F}o����Y�'S#�Ð�h�Dr�qzg���y����m�j|x��C#�@% ^�������BX�n � �9�(� ��9E��g@G��Z Cq{7�Eb����b��b{?�=Wl���b{���KlO��C�%�d���$ ' I���I5���NAfH�#NK˄��OD�D��%�jR=�<�?Z�-&�b���T{[}ƫXil����%vil��L��rsT��q�YэѸz�r��1_�QQ�a�}� _nh��� :څ���ZP�)s �� ���f���2����s2��]��dc�(!;��,�β��ؚ���ͩ �|�H�6T�V�U&�� ⪪�A� 5��ຈ����s]� հ�R��rJc�RR��FG��t�ft� �g ht���Ì�c�RU١�hB��hf��/hv�&�Ti�`T�q��M���*�: ��$@��(�u�~���g�`I� �&���I": ����B7�/�����Z^5cl9����PyC0�a�N��9���{�O�����Q�+kBw���q�4z#�u�>��C�e��@�=�V�.��b;N����Ƀ�����I�~h���� �}������x��d�B�J��2�PT�&���!Ԏ�A��u��[d�� i����)�<�0�Pz�}s`?� ��A�����+I�ړ��<��H�����E���h�#ڂ���0���o�8�f�߃�?���%|�IoRJf�#1���'u�1tm�k�Z�.���s�\5�{nwL�Ί���'F'�%~�x-�v��ķ�[`!��f�[`]K��/�7�FG�1���C،}���c�x&nū�j�;�4� �+1;I&5���E��}�-�i7���sU�D�n��χ�(�q~#����_� a3��\�\�,>=� � c��K�H�^e/ؽ��.�ɳ���A:��v�=����av���@��0���U��.쁯g�l��w���C��O�g��6܍_����A�7�>�O���_�o�B��H�DI�N��wy��������jk� !C�WxDxT� t����ćŕ��ſKN)$��^�Udb/N�9����]��G����܆��D��2�{��&`Z2R���1L7�U�N��^Kz zB �oa���s@���Z����(�����=z�p��d�W~��$��r� �]�$y�k� 9... (ٮo��(�=?w���A�����B�L3a�ua+E�*�h���Q����w�1SI>ۤ��\��{o8k�����I�C��w;o��6���p���{�eM�]����>�ݲ~��Ν��tO,�/�d�լ����=5[) �<�pL�kY�V}5��>.��E꣙� ڠm������m��-ǵ�Z�Ծf1q'�5u:յ ��]�ZI��(�e��$�Q�)8�(�-�M��i4���l����3����I�Xk$�q�q�q��7>K�E]H��3L�d4h;om\�4N��Mcc�tc�߯����ր[sղ}?�8���� �U�N"~�"W�����G;��3�w�֤١=�G6�ڻ��&��?[YT>��Ĭ��W�_����F��:{���+�H�=�+�j��${:�j_�ԒޢlLjW4u鑷گNޑ~�R^�*z�����2���= �b��o��^�PǪ6F�<�A[7iC-���d�әƥ��dJw:eV�]�̽_�������^������nZJR�]�dow9��T�y��7���|�����'E�W_ܹ��o1���-��3Ù��w�t�v��k��!�+�_�o9 ��|�����-D4�)�_̓BQ k5zd�A� �h6�!h����Yp�A1�/t�i;����/p'&֝�Y��o��4ZF������M�eF�܉!&��$�LN�rFGB�`k�'��*�Pi�U���v�جlâ�;)��Z�<�X����M�����C ��b�����V/�߽zk��_��c- �y���/���f���w�0�9������dp[��{�wx=c�a���`=fvs{\���|�]���7dz3|U�c�si(A1�3ӱ����%+6QP��i�@�!f�I$��L�`�r�ÿ�z KY_0o2h��+���I�baˋ V��7�i�kC#p�8n��ӡ 8&O���H, ��Fd@?b�� 9��{̗�L�2Ȗ�3m���n�`4����%��lۖ��Sn]��G_�%?��ڲ|]A���+Z:^�^=�\?�ʆ�E��W��6��yt�^C{WKIIvr�ҲEW���e��7�?�w�!n��1�1o5��l����I=��� E��m�>`1�����/,(���(���� �Ò!JS�=��h j��$}f�U�n�8)JoJ�b�&m�3cg�&2;�@\��cܓ%��~43�l�3�1�4}ƴ+����ߞv{�[̓�W;��k��R���������ν�]O��.䫭x��Xp�[�����>N��%JZI���&���ݺ'��4�]�k��U�c���H�\m�m��k���p�(����v�������~�s;$�S�kV���� ɹ�V��a��F�fW��Md�|� �F7��k�Rp�3I�j� ������ ��N�)$몐�PD���ئmB���mLT��O��\;���':n��!3 (���TOzL�D�*QQf!��bT��6�]�!+�8��W��7c��m���ݷ��Hk~����uM��z�uIQMݜ�-�}� 4���Xh�T"��$)�����S�O�y��W�n�v�o2�`��ڕ|������Ot��L��J��uxރߥL�2�7%9�N�˝��d�4:���j4�`�9�V�E�wv��4$���nO�t&��1JW���~&9��L��-�d�t�� �E�� ��(��l���mJwʭ�̓Ǻ����HFW8���5�Z]���I��3tu�8��� ӏ]b��iٵ'� �&c5�C��������Jm6�#/K1!>�4��Ƨ�m�O�/�x٧�%�c��<��Ӽ���|v�;��l͆�4b|��7}F�|�wt��×_3q��k�E�����"��X4�:A2�ɩ��W�pQ2�L"�$�-g��Rф�"&�I'ʜQ���t�F��<6�*���Ϥ Kx�{$n��NJƋP����sƐP���c4�v�c�^�?�e�Yw��e�n\|{4����W�Wfʦ .pY�X��ǝ��5��n�u|�����s��m�lb'�x�?�!��Õ�u*>t����mg�l��:@3��c ~m�ϨٿjV�^�� ���g7�glZ�qE�잎+�w6-�� �... ���>M� 5�F};�.�e:� � ����x�c���fWNG�mt�>��� ���q��_4���u��n�ku��`'��h�tN,��a��2��8����b1�?& U��$'%'�mgqT:x ր�1������Uc��>�n��t����F!��حFWڞ��ͮ�T��Z ��Ɠ l�1���g�PMt۾p�����m{�m[�}˭����DG��o���S����;m����N[��d��� �m� �O�����z�}B5h��|�0'��H�W� ����F��!�A��|?p>Ǿ`�+�}ʽ�Lb��i^q�o#��lE�2�J���c��|�u�'P��(?N9��c4Ǩ�ͦ�GG�=*lB�� ���R!ӵ^��»A� ������F;+��J���2�pݒ#=NE�kQ�q��?T�ת�;��2d�n�sL�9Fwΐb 2�øLR �3�c�Xf7��Q�A-!e;Z1=�����>p���C��?��-B�=6-t��r��\a�yN:��v��f�B°�3�a�N8{�d ���t/\�|Z1��H1�ݾ"����C�C����f�:�xā�)����ZO�A��Й圬lp��=)̦�u�� 릔���'���c�b��p�)>��l�Zh�hn2/2�5�`g.2��Y�Ls�%���Zb,Q��d�,�B��p��Տk�&��fB�f$yB#�4Ns�Y8��� �x��*���Q݂*m��.l���&y�4˜o��2vO%�� 3ZPf��#C����'Ɗw�����{V� ,��&���|�#j�MV�R)ysEjE����ښ��3X���I�:�\j�v��z����V�g"Y�:��������z����m: �����z�<��n� \S��5��DW�]�rX��6�h �4�_ӛ�+=Ϧ�JX>�J+ %���z[st5�M�F[�<[W�zn����b�ٍ��1d4��+�z<�(P�;��^�DC|�k�b��Y�t�~��3�n"X�`D�[�s�� �U�-��Ʒ�/�7+���o�ݛ[R��&��w�ۺ����`Ӳ�66ko+�5�r����h���2]ܨ���2����ejsM�Qm�+�5����u��u����;�M_zc�z_��z��W�.>��U��U��uX=l�U7���ͩ�PU���>���p��mS��q�;���S�� h1J�f������Raw�X��#���opg�bGFD��*�R�U͵_{{�F6m�oܤ ���uϯ�j�.��|�ϯ����gm��S]�:����x��÷���;�7m �&�\o�i���ٗӝs<Ǥ n�?���s��#6a5��x�zW�?��q�io't��λ�[]_�C�p�e8�Q@��������� ѝ�?<��9�H�SW��=�b?��Ҿ�� �+���%��?k��*KS!U���������/o>� �RQj4��'�N�^o u���ȼ�0��۽^(�e0P�o... �7ٛ���xU~,4�x[� ˑ�h)Y��c�,��������z�β$�NJ0��Q�s~�Az����b�tE���š?}�·���zx�)x�/,6�լ�����gD�pE��b��]��/�i�tTzK�&7�G͍C� ����_0�ղ�� ��&b���jZ�ڐ6�V�N]t�˽ԃ�n���Yz�~G� s��U�}V�v�C��{��e����s���^��y-_�w �����C�)���݉t���D����\�4U�-?izɜo�jn�������WW�����o�?���?DE��~�X�V>�5x�)�ē�s��ְ�ƙ�����B�Z�G�il&���i1[��ȚX R�dw�;�]l/��Hbl�؏�I�g�)����{�1��cs����x1/�H���|6�����"�� |3f�I�����"Axm�z���x^�*���T(K>i��R�S:'�,�!});e��"��7e��L M�M���>4]1��sp\�j~��x�~�q���~��αv9Q��_��Hm�N�3�b��G����].���Ě����C��E� �Ny2>��;����?HIl���K�g��VQ��1�)I�S�_~K��66�_ė�;#�A���|��L.�"O� ��;������z�L��V��?�o����]l�xU:H�� ���5~ͦK��f^Ύ"�^e�4��S��Tv����q&>"�d3x fK�66[~-��UE�F�Ǔ�~�/ϙ������ۘ`%X;_=Ct v�> 1͏h� +�Tz��ӡ��-�!��:{L�<*���%����R=}��Na �� m�t���3?9��F�,�2�u�}��s ��?���_��L�a.�ʗt�ɏ�D�ݍ������k:!�B�Y ��:�U�6w���?_������T�]���Q㑡��"}�^b����)��s�����GVc������w�YZy��1w�"wFvSC��M��ΏA�� ��)�"�+�!ƞe/�}�?l7��Tz ���R�c����)�i�~��Y�y _Y����!ę�^�����T1@�f��H�h��͍<q�(j��E�}��eĞNʖa��V��[@ɬܛ�n"�j��bʷ|7L.�4q���q�cK��zG����*9n�3;+3#=-5%91!>�a���DGY-f�, \� �JmХ�5)O�:�H/+�`4~��\`�^����z�]��Bsſh�Ú�5M�p��WT��+.��5�+̖̭G~o�pi�F~���o�mȻݨ��Ը4t����-]�`MQ!덎�V���� �7*�h�����LaF���'�r��0D-]��ki ����7.��̭��d�݁�B�U/S�4�O�^C���n4S�f6�q��0���-��vPS��\Y�xS�&ц_���-�K�_�8��;�)�]8!�t宮�.�gn�7�f����qOm����<���7���kl:� �c�ixt��Op�K�*UJK�� &&�K�y[ܡ�t�?r�������[��P�5����5oK_��J�^RT��vko�}$c�f�.�9C]��ͻ�W�ۨLåAs-s��zc����IԵl'�PK[��X�Y��]���;0D�������0������4�pL�g� �Urm�ixɍ,:���F����3 ���E���\S�.�i|��\ ������Ԅ��9�~�좦��Ÿe�.�J��P�t~%�V=�`?�w8Q�fɻ��;��-�5��7���+u����]��5[��Ұ\w(��H� W��5ɣ�<�,�y�́���U���S��`��P]/28�s>�lT^��c�̦�|7 ���(�'�S%��/wn���=�5�6���Ѯl�>W��Q�1���w�S��SR3�U����Ȟ��\`����l6��oKK,�NY��Ʋ1nc�#я�>w,�X�Y�l�����f�E��)II,KJ�3�Ғ�R�R�֔��謲���N��2��q����f��4.��jOJ4'H�0̰Z�Ę�N+���85�!��Kc�i��x�)1����xLv��UmdzovBCBkBG��ff5AŠ�ɥ�:]"��qqW�i�V���jb��|?�K��n�i�S����ϼ���X���3?]:����.]��פo�g�Y��9+����Kq�)���ė�sǰ�3����A���t��^�}al...
People Also Search
- 0/1 Knapsack Problem in Dynamic Programming (DSA) - C# Corner
- 0/1 Knapsack Problem - GeeksforGeeks
- DSA The 0/1 Knapsack Problem - W3Schools
- 0-1 Knapsack Problem - Online Tutorials Library
- 0/1 Knapsack Problem Made Easy!! with Dynamic Programming (DP) + SOLVED ...
- Solving the 0 1 Knapsack Problem: From Recursion to Dynamic Programming
- 0-1 Knapsack Problem - Dynamic Programming in C - GitHub
- Solving the 0/1 Knapsack Problem in C Language - Learn Programming
- 0/1 Knapsack Problem - Dynamic Programming Explained
- PDF Dynamic Programming Example: 0/1 Knapsack Problem
The 0/1 Knapsack Problem Is One Of The Most Important
The 0/1 Knapsack Problem is one of the most important and frequently asked Dynamic Programming (DP) problems in DSA interviews. It is used to test your understanding of decision making, optimization, and DP table construction. In simple words, this problem is about choosing the best items to put into a bag so that the total value is maximum, without exceeding the bag’s capacity. This article expla...
You Are Given A Bag With A Fixed Capacity Given
You are given a bag with a fixed capacity Given n items where each item has some weight and profit associated with it and also given a bag with capacity W, [i.e., the bag can hold at most W weight in it]. The task is to put the items into the bag such that the sum of profits associated with them is the maximum possible. Note: The constraint here is we can either put an item completely into the bag...
And If We Select The Item With Weight 1, The
And if we select the item with weight 1, the possible profit is 3. So the maximum possible profit is 3. Note that we cannot put both the items with weight 4 and 1 together as the capacity of the bag is 4. Input: W = 3, profit[] = [1, 2, 3], weight[] = [4, 5, 6]Output: 0 A simple solution is to consider all subsets of items and calculate the total weight and value of all subsets. Consider the only ...
From All Such Subsets, Pick The Subset With Maximum Value.
From all such subsets, pick the subset with maximum value. W3Schools offers a wide range of services and products for beginners and professionals, helping millions of people everyday to learn and master new skills. Enjoy our free tutorials like millions of other internet users since 1999 Explore our selection of references covering all popular coding languages Create your own website with W3School...
We Discussed The Fractional Knapsack Problem Using The Greedy Approach,
We discussed the fractional knapsack problem using the greedy approach, earlier in this tutorial. It is shown that Greedy approach gives an optimal solution for Fractional Knapsack. However, this chapter will cover 0-1 Knapsack problem using dynamic programming approach and its analysis. Unlike in fractional knapsack, the items are always stored fully without using the fractional part of them. Its...